Difference between aoColumnDefs and aoColumns in datatable jquery plugin?
Difference between aoColumnDefs and aoColumns
Asked Answered
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)
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.