i'm new datatables due new requirements of project. i've started learn it, i'm confused inconsistency between official site examples , real usages.
specifically, wonder why name of options when initialize datatables different between official examples , practical use. example, in official guides, initializing table static data demonstrated follow:
$('#example').datatable( { data: data } );
however, after realised not work. searched in statckoverflow got solution should be
$('#example').datatable({ "aadata": data });
so, why maintain gap. because of issues namespace? also, if different, how know correct keywords of options?
i know question might stupid, failed find answer many hours. appreciated.
hungarian notation aadata
used jquery datatables 1.9. new camelcase naming convention data
used in jquery datatables 1.10+. both supported in jquery datatables 1.10+ provide backward compatibility.
see converting parameter names 1.10 more information.
documentation older 1.9 version still available @ http://legacy.datatables.net/
Comments
Post a Comment