MCPcopy
hub / github.com/tabulator-tables/tabulator / constructor

Method constructor

src/js/modules/Sort/Sort.js:12–33  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

10 static sorters = defaultSorters;
11
12 constructor(table){
13 super(table);
14
15 this.sortList = []; //holder current sort
16 this.changed = false; //has the sort changed since last render
17
18 this.registerTableOption("sortMode", "local"); //local or remote sorting
19
20 this.registerTableOption("initialSort", false); //initial sorting criteria
21 this.registerTableOption("columnHeaderSortMulti", true); //multiple or single column sorting
22 this.registerTableOption("sortOrderReverse", false); //reverse internal sort ordering
23 this.registerTableOption("headerSortElement", "<div class='tabulator-arrow'></div>"); //header sort element
24 this.registerTableOption("headerSortClickElement", "header"); //element which triggers sort when clicked
25
26 this.registerColumnOption("sorter");
27 this.registerColumnOption("sorterParams");
28
29 this.registerColumnOption("headerSort", true);
30 this.registerColumnOption("headerSortStartingDir");
31 this.registerColumnOption("headerSortTristate");
32
33 }
34
35 initialize(){
36 this.subscribe("column-layout", this.initializeColumn.bind(this));

Callers

nothing calls this directly

Calls 2

registerTableOptionMethod · 0.80
registerColumnOptionMethod · 0.80

Tested by

no test coverage detected