Difference between aoColumnDefs and aoColumns
Asked Answered
A

1

6

Difference between aoColumnDefs and aoColumns in datatable jquery plugin?

Aerostatics answered 2/6, 2015 at 7:23 Comment(0)
S
5

aoColumns requires you to set each column individually (every column is an entry in the array) aoColumnDefs allows you to set attributes of just some columns, and you can set the same attributes on multiple columns at once (so, you can mark column 2 and 5 to hidden using one entry in the array)

Soulless answered 2/6, 2015 at 7:30 Comment(1)
it might also be important to say aoColumn defines the columns, whereas aoColumnDefs just sets the attributes of columns that are otherwise defined, usually from the data source.Soulless

© 2022 - 2024 — McMap. All rights reserved.