When using dataTables plug-in http://datatables.net
along with FixedColumns plug-in
http://www.datatables.net/extras/fixedcolumns
there are many inconsistencies between the normal behavior of dataTales
and the mixed usage.
For example the fnGetNodes will return rows but with columns that are not fixed.
FixedDataTable wraps the complex stuff between the mixed usage of dataTables
and FixedColumns and provides useful methods, properties, events and call-backs.
FixedDataTable expects a table with the following structure:
Name | Type | Attributes | Default | Description | |
---|---|---|---|---|---|
1 | options | FixedDataTable.Options | undefined |
var options = new FixedDataTable.Options(); options.id = 'resultTable'; options.cssClass = 'resultTable'; options.jQuery = false; options.fixLeft = 4; options.sortDisable = [0], options.multipleSelect = false; options.onClick = function (clicked) {}; options.checkboxSelection = true; options.checkboxClass = 'selectRow'; options.checkboxSelectAllId = 'selectAll'; options.onCheckboxClick = function ( checked, selectedRows ) {}; options.columnTypes = { 4 : 'uk_date', 5 : 'uk_date' }; table = new FixedDataTable( options );
A reference to the dataTable object http://www.datatables.net
The configuration options for the creation of the FixedDataTable object
A reference to the dataTable object http://www.datatables.net/extras/fixedcolumns
Caches the result of that.dTable.fnSettings() when creating a new FixedDataTable
It is preferable to call this method when you delete the table and no longer need it. It frees the resources atken by the FixedDataTable - mainly event handlers.
Performs a search for a row in a table by id of the row
Name | Type | Attributes | Default | Description | |
---|---|---|---|---|---|
1 | table | The table that contains the row we are interested in | |||
2 | id | The id of the row |
a reference to the row or null
Name | Type | Attributes | Default | Description | |
---|---|---|---|---|---|
1 | config | FixedDataTable.Configurator | configuration setting object |