Which should be used: aoColumns or columns?
Which should be used: aoColumns or columns?
I wanted to have a custom sort function for a column in my table. I could find an example, which used aoColumns option, and my goal of custom sorting is achieved as well. However, is aoColumns a legacy option? Should I be using columns option?
This is how my datatable initialization looks:
myTab.DataTable({
aoColumns: [
{"sWidth":"40%", "bSortable":true},
{"sWidth":"60%", "bSortable":true, "sType":"customDate"}
]
});
Thanks.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The Converting parameter names doc explains the difference. Essentially you can use either but the preference is for the current naming convention.
Kevin
@kthorngren Thanks for your answer. That doc should help me understand things better.