Where are DataTable options defined? -
Where are DataTable options defined? -
my question: there 1.10 documentation features aocolumns?
background: using datatables 1.10. create datatable options enabling sorting on 2 of 3 columns found next (which works):
class="lang-js prettyprint-override"> dtable = $('#dtable').datatable({ "aocolumns" : [ { "swidth" : "90%", "bsortable" : true, "class" : "t_col", "name" : 'trip' }, { "swidth" : "5%", "bsortable" : true, "class" : "s_col", "name" : 'stat' }, { "swidth" : "5%", "bsortable" : false, "class" : "d_col", "name" : 'del' }] }); i found illustration online , (eventually) found documentation aocolumns on datatable legacy site. however, legacy site states, "this site contains legacy documentation datatables v1.9 , before reference only." can't find 1.10 reference type of configuration anywhere. can point me if exists? (same goes callback functions)
there's manual , reference on front end page. seems have renamed lot of properties.
e.g. aocolumns , aocolumndefs columns (here) , columndefs (here)
callback here.
so code in ver. 1.10 be:
dtable = $('#dtable').datatable({ "columns" : [ { "width" : "90%", "orderable" : true, classname : "t_col", "name" : 'trip' }, { "width" : "5%", "orderable" : true, classname : "s_col", "name" : 'stat' }, { "width" : "5%", "orderable" : false, classname : "d_col", "name" : 'del' }] }); datatables jquery-datatables
Comments
Post a Comment