An Options object for the creation of FixedDataTable;
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 ) {};
The class attribute of the checkbox element
If you are using the checkbox element as a selection element for the rows It's worthy to have a select all checkbox. This is the id of that element.
TRUE If you have a checkbox as a selection element for the rows
Columns types. Used for sorting and filtering.
It's an object. Keys are the columns number (zero based).
Supported types:
columnTypes = { 5 : "uk-date" }
The one of the values in the class attribute of the table
Number of fixed left columns
The html id attribute of the table element
Using the jQuery theme style for the table(true) or the custom style (false)
TRUE each click on a row adds the class 'row_selected'
FALSE each click on a row adds the class 'row_selected' and removes the class from all other
A callback function accepting called when a checkbox element is clicked. Accepts 2 parameters: 1. Booleand value indicating if the checkbox is checked 2. Object parameter: Containing the row from fixedColumnsTable; the row from dataTables table
onCheckboxClick: function ( checked, selectedRows ) { var dataTableRow = null, fixedTableRow = null; if ( checked === true) { var dataTableRow = selectedRows.dtRow; var fixedTableRow = selectedRows.fcRow; } }
Call-back function that is called when a row is clicked Accepts object parameter: Containing the row from fixedColumnsTable; the row from dataTables table
onClick: function (clicked) { var dataTableRow = clicked.dtRow; var fixedTableRow = clicked.fcRow; }
The columns that should not be sorted. Zero based array
sortDisable: [0, 1, 2]