mirror of
https://github.com/DataTables/DataTables.git
synced 2026-04-25 03:00:08 -04:00
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:
@@ -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( '<table cellpadding="0" cellspacing="0" border="0" class="display" id="example"></table>' );
|
||||
|
||||
$('#example').dataTable( {
|
||||
$('#example').DataTable( {
|
||||
"data": dataSet,
|
||||
"columns": [
|
||||
{ "title": "Engine" },
|
||||
|
||||
Reference in New Issue
Block a user