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:
@@ -25,7 +25,7 @@
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
$('#example').DataTable( {
|
||||
"createdRow": function ( row, data, index ) {
|
||||
if ( data[5].replace(/[\$,]/g, '') * 1 > 150000 ) {
|
||||
$('td', row).eq(5).addClass('highlight');
|
||||
@@ -547,7 +547,7 @@ $(document).ready(function() {
|
||||
<div class="tabs">
|
||||
<div class="js">
|
||||
<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
$('#example').DataTable( {
|
||||
"createdRow": function ( row, data, index ) {
|
||||
if ( data[5].replace(/[\$,]/g, '') * 1 > 150000 ) {
|
||||
$('td', row).eq(5).addClass('highlight');
|
||||
|
||||
Reference in New Issue
Block a user