Class: Options

Ancestry: FixedDataTable ยป Options

Navigation

Hiding private elements (toggle)
Showing extended elements (toggle)
new Options( )

An Options object for the creation of FixedDataTable;

Constructor

Example:
			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 ) {};

Summary

Properties

checkboxClass :String
The class attribute of the checkbox element
checkboxSelectAllId :String
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.
checkboxSelection :Boolean
TRUE If you have a checkbox as a selection element for the rows
columnTypes :Object
Columns types. Used for sorting and filtering. It's an object. Keys are the columns number (zero based). Supported types:
  • uk_date - Date in the format: "dd/mm/yyyy". Example 1th of February 2010 - 01/02/2010
cssClass :String
The one of the values in the class attribute of the table
fixLeft :Integer
Number of fixed left columns
id :String
The html id attribute of the table element
jQuery :Boolean
Using the jQuery theme style for the table(true) or the custom style (false)
multipleSelect :Boolean
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
onCheckboxClick :Function
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
onClick :Function
Call-back function that is called when a row is clicked Accepts object parameter: Containing the row from fixedColumnsTable; the row from dataTables table
sortDisable :Array
The columns that should not be sorted. Zero based array

Details

Properties

checkboxClass :String

The class attribute of the checkbox element

checkboxSelectAllId :String

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.

checkboxSelection :Boolean

TRUE If you have a checkbox as a selection element for the rows

columnTypes :Object

Columns types. Used for sorting and filtering. It's an object. Keys are the columns number (zero based). Supported types:

  • uk_date - Date in the format: "dd/mm/yyyy". Example 1th of February 2010 - 01/02/2010

Example
 
		columnTypes = {
			5 : "uk-date"
		}
cssClass :String

The one of the values in the class attribute of the table

fixLeft :Integer

Number of fixed left columns

id :String

The html id attribute of the table element

jQuery :Boolean

Using the jQuery theme style for the table(true) or the custom style (false)

multipleSelect :Boolean

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

onCheckboxClick :Function

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

Example
			onCheckboxClick: function ( checked, selectedRows ) {
				var dataTableRow = null, fixedTableRow = null;
				if ( checked === true) { 
					var dataTableRow = selectedRows.dtRow;
					var fixedTableRow = selectedRows.fcRow;
				}							
			}
onClick :Function

Call-back function that is called when a row is clicked Accepts object parameter: Containing the row from fixedColumnsTable; the row from dataTables table

Example
		onClick: function (clicked) {
			var dataTableRow = clicked.dtRow;
			var fixedTableRow = clicked.fcRow;
		}
sortDisable :Array

The columns that should not be sorted. Zero based array

Example
		sortDisable: [0, 1, 2]