TableFilter
Makes HTML tables filterable and a bit more :)
Constructor Summary
Public Constructor | ||
public |
constructor(table: HTMLTableElement, id: String, row: Number, configuration: Object) Creates an instance of TableFilter
requires |
Member Summary
Public Members | ||
public |
Enable/disable alternating rows |
|
public |
Logical AND operator for input filter. |
|
public |
Enable auto-filter behaviour, table is filtered when a user stops typing |
|
public |
Auto-filter delay in milliseconds |
|
public |
Base path for static assets |
|
public |
Css class for filters submission button |
|
public |
Enable clear button |
|
public |
Define filters submission button text |
|
public |
Enable/disable case sensitivity for filtering, default false |
|
public |
Specify which column implements a custom cell parser to retrieve the cell value: cell_parser: { cols: [0, 2], parse: function(tf, cell, colIndex) { // custom cell parser logic here return cellValue; } } |
|
public |
Text for clear option in drop-down filter types (1st option) |
|
public |
Define data types on a column basis, possible values 'string', 'number', 'formatted-number', 'date', 'ipaddress' ie: col_types : [ 'string', 'date', 'number', { type: 'formatted-number', decimal: ',', thousands: '.' }, { type: 'date', locale: 'en-gb' }, { type: 'date', format: ['{dd}-{months}-{yyyy|yy}'] } ] |
|
public |
Columns widths array |
|
public |
Custom options definition of a per column basis, ie: custom_options: { cols:[0, 1], texts: [ ['a0', 'b0', 'c0'], ['a1', 'b1', 'c1'] ], values: [ ['a0', 'b0', 'c0'], ['a1', 'b1', 'c1'] ], sorts: [false, true] } |
|
public |
Define decimal separator ',' or '.', defaults to '.' |
|
public |
Default column width when column widths are defined |
|
public |
Inequality operator for input filter. |
|
public |
Enable/disable readonly state for excluded options when linked filters filtering mode is on |
|
public |
Enable filters submission button |
|
public |
Empty cells operator for input filter. |
|
public |
Event emitter instance |
|
public |
Text for empty option in drop-down filter types |
|
public |
Ends with operator for input filter. |
|
public |
Enable default theme |
|
public |
Indicate whether empty option is enabled in drop-down filter types |
|
public |
Enable/disable icons (paging, reset button) |
|
public |
Indicate whether non-empty option is enabled in drop-down filter types |
|
public |
Enable/disable enter key for input type filters |
|
public |
Strict equality operator for input filter. |
|
public |
Globally enable/disable exact match filtering |
|
public |
Exact match filtering per column array |
|
public |
List of row indexes to be excluded from filtering |
|
public |
List of loaded extensions |
|
public |
List of containers IDs where external filters will be generated |
|
public |
Filters row index |
|
public |
Define the type of cell containing a filter (td/th) |
|
public |
Css class for a filter element |
|
public |
Enable/disable filters |
|
public |
Css class for multiple select filters |
|
public |
Css class for small filter (when submit button is active) |
|
public |
Css class for the filters row |
|
public |
Greater than or equal operator for input filter. |
|
public |
Greater than operator for input filter. |
|
public |
Enable/disable grid layout (fixed headers) |
|
public |
Indicate whether custom drop-down filter options are implemented |
|
public |
Indicate whether help UI component is disabled |
|
public |
Enable keyword highlighting behaviour |
|
public |
Ignore diacritics globally or on a column basis |
|
public |
Lower than or equal operator for input filter. |
|
public |
Enable/disable linked filters filtering mode |
|
public |
Like operator for input filter. |
|
public |
Indicate whether drop-down filter types are populated on demand at first usage |
|
public |
Enable activity/spinner indicator UI component |
|
public |
Define default locale, default to 'en' as per Sugar Date module: https://sugarjs.com/docs/#/DateLocales |
|
public |
Lower than operator for input filter. |
|
public |
Indicate whether filtered (active) columns indicator is enabled |
|
public |
Non-empty cells operator for input filter. |
|
public |
Enable no results message UI component |
|
public |
Text for non-empty option in drop-down filter types |
|
public |
Callback fired after filtering process is completed |
|
public |
Callback fired after filters are cleared |
|
public |
Callback fired before filtering process starts |
|
public |
Callback fired before filters are cleared |
|
public |
Callback fired after filters are generated |
|
public |
Callback fired after a row is validated during filtering |
|
public |
Indicate whether drop-down filter types filter the table by default on change event |
|
public |
Logical OR operator for input filter. |
|
public |
Enable paging component |
|
public |
Indicate whether pop-up filters UI is enabled |
|
public |
Calculated row's index from which starts filtering once filters are generated |
|
public |
Enable responsive layout |
|
public |
Regular expression operator for input filter. |
|
public |
Enable rows counter UI component |
|
public |
Stored values separator |
|
public |
Enable/disable single filter mode |
|
public |
Css class for single filter type |
|
public |
Specify columns to be excluded from single filter search, by default searching in all columns: single_filter: { exclude_cols: [2, 7] } |
|
public |
List of columns implementing filter options sorting in ascending manner based on column data type |
|
public |
List of columns implementing filter options sorting in descending manner based on column data type |
|
public |
Make drop-down filter types options sorted in alpha-numeric manner by default globally or on a column basis |
|
public |
Starts with operator for input filter. |
|
public |
Enable state persistence |
|
public |
Enable status bar UI component |
|
public |
Enable sticky headers |
|
public |
Path for stylesheets |
|
public |
Main stylesheet path |
|
public |
List of themes, ie: themes: [{ name: 'skyblue' }] |
|
public |
Define path to themes assets, defaults to 'tablefilter/style/themes/'. |
|
public |
Define thousands separator ',' or '.', defaults to ',' |
|
public |
Enable toolbar component |
|
public |
Current version |
|
public |
Global watermark text for input filter type or watermark for each filter if an array is supplied |
Method Summary
Public Methods | ||
public |
activateFilter(colIndex: *) Make specified column's filter active |
|
public |
Clear all the filters' values |
|
public |
Get the configuration object (literal object) |
|
public |
destroy() Destroy filter grid |
|
public |
Destroy all the extensions store in extensions registry |
|
public |
detectKey(evt: Event) Detect <enter> key |
|
public |
dom(): HTMLTableElement Return the working DOM element |
|
public |
Column iterator invoking continue and break condition callbacks if any then calling supplied callback for each item |
|
public |
Rows iterator starting from supplied row index or defaulting to reference row index. |
|
public |
Get an extension instance |
|
public |
Return a feature instance for a given name |
|
public |
filter() Filter the table by retrieving the data from each cell in every single row and comparing it to the search term for current column. |
|
public |
Return the ID of the current active filter |
|
public |
getCellData(cell: DOMElement): String | Number | Date Return the typed data of a given cell based on the column type definition |
|
public |
getCellValue(Cell's: DOMElement): String Return the text content of a given cell |
|
public |
getCellsNb(rowIndex: Number): Number Return the number of cells for a given row index |
|
public |
getClearFilterText(colIndex: Number): String Return clear all text for specified filter column |
|
public |
getColumnData(colIndex: Number, includeHeaders: Boolean, exclude: Array): * Return the data of a specified column |
|
public |
getColumnIndexFromFilterId(filterId: string): Number Return the column index for a given filter ID |
|
public |
getColumnValues(colIndex: Number, includeHeaders: Boolean, exclude: Array): * Return the values of a specified column |
|
public |
getCustomOptions(colIndex: Number): Array Returns an array [[value0, value1 ...],[text0, text1 ...]] with the custom options values and texts |
|
public |
Return the table data based on its columns data type definitions with following structure: [ [rowIndex, [data0, data1...]], [rowIndex, [data0, data1...]] ] |
|
public |
getDecimal(colIndex: Number): String Return the decimal separator for supplied column as per column type configuration or global setting |
|
public |
getFilterElement(index: Number): DOMElement Return the filter's DOM element for a given column |
|
public |
getFilterId(index: Number): String Return the ID of a specified column's filter |
|
public |
getFilterType(colIndex: Number): String Return the filter type for a specified column |
|
public |
getFilterValue(index: Number): String Return the filter's value of a specified column |
|
public |
Get the total number of filterable rows |
|
public |
getFilteredColumnData(colIndex: any, includeHeaders: boolean, exclude: any): Array Return the filtered data for a given column index |
|
public |
getFilteredColumnValues(colIndex: any, includeHeaders: boolean, exclude: any): Array Return the filtered values for a given column index |
|
public |
getFilteredData(includeHeaders: Boolean, excludeHiddenCols: Boolean): Array Return the filtered table data based on its columns data type definitions with following structure: [ [rowIndex, [data0, data1...]], [rowIndex, [data0, data1...]] ] |
|
public |
getFilteredValues(includeHeaders: Boolean, excludeHiddenCols: Boolean): Array Return the filtered table values with following structure: [ [rowIndex, [value0, value1...]], [rowIndex, [value0, value1...]] ] |
|
public |
getFiltersByType(type: String, bool: Boolean): [type] Return the list of ids of filters matching a specified type. |
|
public |
Get list of filter IDs |
|
public |
Get the index of the row containing the filters |
|
public |
Return the filters' values |
|
public |
getHeaderElement(colIndex: Number): Element Get the header DOM element for a given column index |
|
public |
Get the index of the headers row |
|
public |
getHeadersText(excludeHiddenCols: Boolean): Array Return the list of headers' text |
|
public |
Get the index of the last row |
|
public |
getRowDisplay(row: HTMLTableRowElement): String Get the display value of a row |
|
public |
Return the number of working rows starting from reference row if defined |
|
public |
Get the row index from where the filtering process start (1st filterable row) |
|
public |
getStylesheet(name: string): DOMElement Return stylesheet DOM element for a given theme name |
|
public |
getValidRows(reCalc: Boolean): Array Get filtered (valid) rows indexes |
|
public |
getValidRowsNb(reCalc: Boolean): Number Return the total number of valid rows |
|
public |
Return the table values with following structure: [ [rowIndex, [value0, value1...]], [rowIndex, [value0, value1...]] ] |
|
public |
getVisibleColumnData(colIndex: any, includeHeaders: boolean, exclude: any): Array Return the filtered and visible data for a given column index |
|
public |
getVisibleColumnValues(colIndex: any, includeHeaders: boolean, exclude: any): Array Return the filtered and visible values for a given column index |
|
public |
Return the collection of the working rows, that is, the rows belonging to the tbody section(s) |
|
public |
hasExtension(name: String): Boolean Check passed extension name exists |
|
public |
Determine whether the specified column has one of the passed types |
|
public |
ignoresDiacritics(colIndex: Number): Boolean Check if specified column filter ignores diacritics. |
|
public |
Import script or stylesheet |
|
public |
init() Initialise features and layout |
|
public |
Initialise all the extensions defined in the configuration object |
|
public |
isCustomOptions(colIndex: Number): Boolean Check if given column implements a filter with custom options |
|
public |
isExactMatch(colIndex: Number): Boolean Determine if passed filter column implements exact query match |
|
public |
isImported(filePath: String, type: String): Boolean Check if passed script or stylesheet is already imported |
|
public |
Check if table has filters grid |
|
public |
isRowDisplayed(rowIndex: Number): Boolean Check if passed row is visible |
|
public |
isRowValid(rowIndex: Number): Boolean Check if passed row is valid |
|
public |
loadExtension(ext: Object) Load an extension module |
|
public |
Load themes defined in the configuration object |
|
public |
Filter's blur event: if auto-filter on, clear interval on filter blur |
|
public |
onInpFocus(evt: Event) Filter's focus event |
|
public |
Filter's keydown event: if auto-filter on, detect user is typing |
|
public |
onKeyUp(evt: Event) Filter's keyup event: if auto-filter on, detect user is typing and filter columns |
|
public |
registerExtension(inst: Object, name: String) Register the passed extension instance with associated name |
|
public |
Remove all the external column filters |
|
public |
setActiveFilterId(filterId: String) Set the ID of the current active filter |
|
public |
setColWidths(tbl: TableElement) Set passed or default working table columns' widths with configuration values |
|
public |
Exclude rows from actions |
|
public |
setFilterValue(index: Number, query: String or Array) Set search value to a given filter |
|
public |
setFixedLayout(tbl: TableElement) Make passed or default working table element width fixed |
|
public |
Validate all filterable rows |
|
public |
validateRow(rowIndex: Number, isValid: Boolean) Validate/invalidate row by setting the 'validRow' attribute on the row |
Public Constructors
Public Members
public autoFilter: Object | Boolean source
Enable auto-filter behaviour, table is filtered when a user stops typing
public cellParser: Object source
Specify which column implements a custom cell parser to retrieve the cell value: cell_parser: { cols: [0, 2], parse: function(tf, cell, colIndex) { // custom cell parser logic here return cellValue; } }
public clearFilterText: String | Array source
Text for clear option in drop-down filter types (1st option)
public colTypes: Array source
Define data types on a column basis, possible values 'string', 'number', 'formatted-number', 'date', 'ipaddress' ie: col_types : [ 'string', 'date', 'number', { type: 'formatted-number', decimal: ',', thousands: '.' }, { type: 'date', locale: 'en-gb' }, { type: 'date', format: ['{dd}-{months}-{yyyy|yy}'] } ]
Refer to https://sugarjs.com/docs/#/DateParsing for exhaustive information on date parsing formats supported by Sugar Date
public customOptions: Object source
Custom options definition of a per column basis, ie: custom_options: { cols:[0, 1], texts: [ ['a0', 'b0', 'c0'], ['a1', 'b1', 'c1'] ], values: [ ['a0', 'b0', 'c0'], ['a1', 'b1', 'c1'] ], sorts: [false, true] }
public disableExcludedOptions: Boolean source
Enable/disable readonly state for excluded options when linked filters filtering mode is on
public enableEmptyOption: Boolean source
Indicate whether empty option is enabled in drop-down filter types
public enableNonEmptyOption: Boolean source
Indicate whether non-empty option is enabled in drop-down filter types
public hasCustomOptions: Boolean source
Indicate whether custom drop-down filter options are implemented
public loadFltOnDemand: Boolean source
Indicate whether drop-down filter types are populated on demand at first usage
public locale: String source
Define default locale, default to 'en' as per Sugar Date module: https://sugarjs.com/docs/#/DateLocales
public markActiveColumns: Boolean source
Indicate whether filtered (active) columns indicator is enabled
public nmOperator: String source
Non-empty cells operator for input filter. Defaults to '[nonempty]'
public onSlcChange: Boolean source
Indicate whether drop-down filter types filter the table by default on change event
public refRow: Number source
Calculated row's index from which starts filtering once filters are generated
public singleFltExcludeCols: * source
Specify columns to be excluded from single filter search, by default searching in all columns: single_filter: { exclude_cols: [2, 7] }
public sortFilterOptionsAsc: Array source
List of columns implementing filter options sorting in ascending manner based on column data type
public sortFilterOptionsDesc: Array source
List of columns implementing filter options sorting in descending manner based on column data type
public sortSlc: Boolean | Array source
Make drop-down filter types options sorted in alpha-numeric manner by default globally or on a column basis
Public Methods
public activateFilter(colIndex: *) source
Make specified column's filter active
Params:
Name | Type | Attribute | Description |
colIndex | * | Index of a column |
public detectKey(evt: Event) source
Detect <enter> key
Params:
Name | Type | Attribute | Description |
evt | Event |
public eachCol(fn: Function, continueFn: Function, breakFn: Function) source
Column iterator invoking continue and break condition callbacks if any then calling supplied callback for each item
public eachRow(startIdx: Number): * source
Rows iterator starting from supplied row index or defaulting to reference row index. Closure function accepts a callback function and optional continue and break callbacks.
Params:
Name | Type | Attribute | Description |
startIdx | Number | Row index from which filtering starts |
Return:
* |
public extension(name: String): Object source
Get an extension instance
Params:
Name | Type | Attribute | Description |
name | String | Name of the extension |
public feature(name: String): Object source
Return a feature instance for a given name
Params:
Name | Type | Attribute | Description |
name | String | Name of the feature |
public filter() source
Filter the table by retrieving the data from each cell in every single row and comparing it to the search term for current column. A row is hidden when all the search terms are not found in inspected row.
public getCellData(cell: DOMElement): String | Number | Date source
Return the typed data of a given cell based on the column type definition
Params:
Name | Type | Attribute | Description |
cell | DOMElement | Cell's DOM element |
public getCellValue(Cell's: DOMElement): String source
Return the text content of a given cell
Params:
Name | Type | Attribute | Description |
Cell's | DOMElement | DOM element |
public getCellsNb(rowIndex: Number): Number source
Return the number of cells for a given row index
Params:
Name | Type | Attribute | Description |
rowIndex | Number | Index of the row |
public getClearFilterText(colIndex: Number): String source
Return clear all text for specified filter column
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column index |
public getColumnData(colIndex: Number, includeHeaders: Boolean, exclude: Array): * source
Return the data of a specified column
Return:
* | Flat list of data for a column |
public getColumnIndexFromFilterId(filterId: string): Number source
Return the column index for a given filter ID
Params:
Name | Type | Attribute | Description |
filterId | string |
|
Filter ID |
public getColumnValues(colIndex: Number, includeHeaders: Boolean, exclude: Array): * source
Return the values of a specified column
Return:
* | Flat list of values for a column |
public getCustomOptions(colIndex: Number): Array source
Returns an array [[value0, value1 ...],[text0, text1 ...]] with the custom options values and texts
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column's index |
public getData(includeHeaders: Boolean, excludeHiddenCols: Boolean): Array source
Return the table data based on its columns data type definitions with following structure: [ [rowIndex, [data0, data1...]], [rowIndex, [data0, data1...]] ]
public getDecimal(colIndex: Number): String source
Return the decimal separator for supplied column as per column type configuration or global setting
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column index |
public getFilterElement(index: Number): DOMElement source
Return the filter's DOM element for a given column
Params:
Name | Type | Attribute | Description |
index | Number | Column's index |
Return:
DOMElement |
public getFilterId(index: Number): String source
Return the ID of a specified column's filter
Params:
Name | Type | Attribute | Description |
index | Number | Column's index |
public getFilterType(colIndex: Number): String source
Return the filter type for a specified column
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column's index |
public getFilterValue(index: Number): String source
Return the filter's value of a specified column
Params:
Name | Type | Attribute | Description |
index | Number | Column index |
public getFilteredColumnData(colIndex: any, includeHeaders: boolean, exclude: any): Array source
Return the filtered data for a given column index
Params:
Name | Type | Attribute | Description |
colIndex | any | Colmun's index |
|
includeHeaders | boolean |
|
Optional Include headers row |
exclude | any |
|
Optional List of row indexes to be excluded |
Return:
Array | Flat list of typed values [data0, data1, data2...] TODO: provide an API returning data in JSON format |
public getFilteredColumnValues(colIndex: any, includeHeaders: boolean, exclude: any): Array source
Return the filtered values for a given column index
Params:
Name | Type | Attribute | Description |
colIndex | any | Colmun's index |
|
includeHeaders | boolean |
|
Optional Include headers row |
exclude | any |
|
Optional List of row indexes to be excluded |
Return:
Array | Flat list of values ['value0', 'value1', 'value2'...] TODO: provide an API returning data in JSON format |
public getFilteredData(includeHeaders: Boolean, excludeHiddenCols: Boolean): Array source
Return the filtered table data based on its columns data type definitions with following structure: [ [rowIndex, [data0, data1...]], [rowIndex, [data0, data1...]] ]
public getFilteredValues(includeHeaders: Boolean, excludeHiddenCols: Boolean): Array source
Return the filtered table values with following structure: [ [rowIndex, [value0, value1...]], [rowIndex, [value0, value1...]] ]
public getFiltersByType(type: String, bool: Boolean): [type] source
Return the list of ids of filters matching a specified type. Note: hidden filters are also returned
Return:
[type] | List of element IDs or column indexes |
public getHeaderElement(colIndex: Number): Element source
Get the header DOM element for a given column index
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column index |
Return:
Element |
public getHeadersText(excludeHiddenCols: Boolean): Array source
Return the list of headers' text
Params:
Name | Type | Attribute | Description |
excludeHiddenCols | Boolean | Optional: exclude hidden columns |
public getRowDisplay(row: HTMLTableRowElement): String source
Get the display value of a row
Params:
Name | Type | Attribute | Description |
row | HTMLTableRowElement | DOM element of the row |
public getRowsNb(includeHeaders: Boolean): Number source
Return the number of working rows starting from reference row if defined
Params:
Name | Type | Attribute | Description |
includeHeaders | Boolean | Include the headers row(s) |
public getStartRowIndex(): Number source
Get the row index from where the filtering process start (1st filterable row)
public getStylesheet(name: string): DOMElement source
Return stylesheet DOM element for a given theme name
Params:
Name | Type | Attribute | Description |
name | string |
|
Return:
DOMElement | stylesheet element |
public getValidRows(reCalc: Boolean): Array source
Get filtered (valid) rows indexes
Params:
Name | Type | Attribute | Description |
reCalc | Boolean | Force calculation of filtered rows list |
public getValidRowsNb(reCalc: Boolean): Number source
Return the total number of valid rows
Params:
Name | Type | Attribute | Description |
reCalc | Boolean |
|
Forces calculation of filtered rows |
public getValues(includeHeaders: Boolean, excludeHiddenCols: Boolean): Array source
Return the table values with following structure: [ [rowIndex, [value0, value1...]], [rowIndex, [value0, value1...]] ]
public getVisibleColumnData(colIndex: any, includeHeaders: boolean, exclude: any): Array source
Return the filtered and visible data for a given column index
Params:
Name | Type | Attribute | Description |
colIndex | any | Colmun's index |
|
includeHeaders | boolean |
|
Optional Include headers row |
exclude | any |
|
Optional List of row indexes to be excluded |
Return:
Array | Flat list of typed values [data0, data1, data2...] TODO: provide an API returning data in JSON format |
public getVisibleColumnValues(colIndex: any, includeHeaders: boolean, exclude: any): Array source
Return the filtered and visible values for a given column index
Params:
Name | Type | Attribute | Description |
colIndex | any | Colmun's index |
|
includeHeaders | boolean |
|
Optional Include headers row |
exclude | any |
|
Optional List of row indexes to be excluded |
Return:
Array | Flat list of values ['value0', 'value1', 'value2'...] TODO: provide an API returning data in JSON format |
public getWorkingRows(): Array source
Return the collection of the working rows, that is, the rows belonging to the tbody section(s)
public hasExtension(name: String): Boolean source
Check passed extension name exists
Params:
Name | Type | Attribute | Description |
name | String | Name of the extension |
public hasType(colIndex: Number, types: Array): Boolean source
Determine whether the specified column has one of the passed types
public ignoresDiacritics(colIndex: Number): Boolean source
Check if specified column filter ignores diacritics. Note this is only applicable to input filter types.
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column index |
public import(fileId: String, filePath: String, callback: Function, type: String) source
Import script or stylesheet
public isCustomOptions(colIndex: Number): Boolean source
Check if given column implements a filter with custom options
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column's index |
public isExactMatch(colIndex: Number): Boolean source
Determine if passed filter column implements exact query match
Params:
Name | Type | Attribute | Description |
colIndex | Number | Column index |
public isImported(filePath: String, type: String): Boolean source
Check if passed script or stylesheet is already imported
public isRowDisplayed(rowIndex: Number): Boolean source
Check if passed row is visible
Params:
Name | Type | Attribute | Description |
rowIndex | Number | Row index |
public isRowValid(rowIndex: Number): Boolean source
Check if passed row is valid
Params:
Name | Type | Attribute | Description |
rowIndex | Number | Row index |
public loadExtension(ext: Object) source
Load an extension module
Params:
Name | Type | Attribute | Description |
ext | Object | Extension config object |
public onInpFocus(evt: Event) source
Filter's focus event
Params:
Name | Type | Attribute | Description |
evt | Event |
public onKeyUp(evt: Event) source
Filter's keyup event: if auto-filter on, detect user is typing and filter columns
Params:
Name | Type | Attribute | Description |
evt | Event |
public registerExtension(inst: Object, name: String) source
Register the passed extension instance with associated name
public setActiveFilterId(filterId: String) source
Set the ID of the current active filter
Params:
Name | Type | Attribute | Description |
filterId | String | Element ID |
public setColWidths(tbl: TableElement) source
Set passed or default working table columns' widths with configuration values
Params:
Name | Type | Attribute | Description |
tbl | TableElement | optional table DOM element |
public setFilterValue(index: Number, query: String or Array) source
Set search value to a given filter
Params:
Name | Type | Attribute | Description |
index | Number | Column's index |
|
query | String or Array | searcharg Search term |
public setFixedLayout(tbl: TableElement) source
Make passed or default working table element width fixed
Params:
Name | Type | Attribute | Description |
tbl | TableElement | optional table DOM element |