Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

Which should be used: aoColumns or columns?

$
0
0

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.


Viewing all articles
Browse latest Browse all 81728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>