Update - examples: All examples now use $().DataTable() to construct the table.

- The API examples already used the new form, but many were still
  `$().dataTable()`, which still works, but the new API form method is
  prefered.
This commit is contained in:
Allan Jardine
2015-08-10 14:57:47 +01:00
parent ecf94192ae
commit 781f7fcaef
65 changed files with 129 additions and 129 deletions

View File

@@ -82,7 +82,7 @@ var dataSet = [
$(document).ready(function() {
$('#demo').html( '<table cellpadding="0" cellspacing="0" border="0" class="display" id="example"></table>' );
$('#example').dataTable( {
$('#example').DataTable( {
"data": dataSet,
"columns": [
{ "title": "Engine" },
@@ -188,7 +188,7 @@ $(document).ready(function() {
$(document).ready(function() {
$('#demo').html( '&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; class=&quot;display&quot; id=&quot;example&quot;&gt;&lt;/table&gt;' );
$('#example').dataTable( {
$('#example').DataTable( {
&quot;data&quot;: dataSet,
&quot;columns&quot;: [
{ &quot;title&quot;: &quot;Engine&quot; },