(table)
| 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)); |
nothing calls this directly
no test coverage detected