Rev | Line | |
---|
[6286] | 1 | // DATA_TEMPLATE: empty_table |
---|
| 2 | oTest.fnStart( "aoColumns.bSeachable" ); |
---|
| 3 | |
---|
| 4 | $(document).ready( function () { |
---|
| 5 | /* Check the default */ |
---|
| 6 | var oTable = $('#example').dataTable( { |
---|
| 7 | "bServerSide": true, |
---|
| 8 | "sAjaxSource": "../../../examples/examples_support/server_processing.php" |
---|
| 9 | } ); |
---|
| 10 | var oSettings = oTable.fnSettings(); |
---|
| 11 | |
---|
| 12 | oTest.fnWaitTest( |
---|
| 13 | "Columns are searchable by default", |
---|
| 14 | function () { oTable.fnFilter("Camino"); }, |
---|
| 15 | function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Camino 1.0"; } |
---|
| 16 | ); |
---|
| 17 | |
---|
| 18 | /* NOT ACTUALLY GOING TO TEST BSEARCHABLE HERE. Reason being is that it requires the server |
---|
| 19 | * side to alter it's processing, and this information about columns is not actually sent to |
---|
| 20 | * the server |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | oTest.fnComplete(); |
---|
| 25 | } ); |
---|
Note: See
TracBrowser
for help on using the repository browser.