import AdapterSortableTable from 'tablefilter/src/extensions/sort/adapterSortabletable.js'Constructor Summary
| Public Constructor | ||
| public |
constructor(tf: TableFilter, opts: Object) Creates an instance of AdapterSortableTable |
|
Member Summary
| Public Members | ||
| public |
Enable asynchronous sort, if triggers are external |
|
| public |
Cell attribute key storing custom value used for sorting |
|
| public |
Module description |
|
| public |
Css class for ascending sort indicator image |
|
| public |
Blank image file name |
|
| public |
Css class for sort indicator image |
|
| public |
Css class for descending sort indicator image |
|
| public |
Path to images |
|
| public |
|
|
| public |
Module name |
|
| public |
Callback fired after a table column is sorted |
|
| public |
Callback fired before a table column is sorted |
|
| public |
Callback fired when sort extension is instanciated |
|
| public |
Column to be sorted at initialization, ie: sort_col_at_start: [1, true] |
|
| public |
List of sort type per column basis |
|
| public |
List of element IDs triggering sort on a per column basis |
|
Method Summary
| Public Methods | ||
| public |
addSortType(args: ...*) Adds a sort type |
|
| public |
destroy() Remove extension |
|
| public |
init() Initializes AdapterSortableTable instance |
|
| public |
Set SortableTable overrides for TableFilter integration |
|
| public |
sortByColumnIndex(colIdx: Number, desc: Boolean) Sort specified column |
|
Inherited Summary
| From class Feature | ||
| public |
TableFilter configuration |
|
| public |
TableFilter emitter instance |
|
| public |
TableFilter feature setting |
|
| public |
Feature name is the camelised class name as per TableFilter's convention |
|
| public |
Field indicating whether Feature is initialized |
|
| public |
TableFilter instance |
|
| public |
destroy() Destroy the feature |
|
| public |
disable() Disable the feature |
|
| public |
enable() Enable the feature |
|
| public |
init() Initialize the feature |
|
| public |
Indicate whether the feature is enabled or not |
|
| public |
reset() Reset the feature after being disabled |
|
Public Constructors
public constructor(tf: TableFilter, opts: Object) source
Creates an instance of AdapterSortableTable
Override:
Feature#constructorParams:
| Name | Type | Attribute | Description |
| tf | TableFilter | TableFilter instance |
|
| opts | Object | Configuration object |
Public Members
public initialized: boolean source
Field indicating whether Feature is initialized
Override:
Feature#initializedPublic Methods
public addSortType(args: ...*) source
Adds a sort type
Params:
| Name | Type | Attribute | Description |
| args | ...* |
