v2.4.50
VueUiTableSparkline #144
- Add config options to control which columns can be sorted:
config.sortedDataColumnIndices: number[]; // default: []
config.sortedSeriesName: boolean; // default: false
config.sortedSum: boolean; // default: false
config.sortedAverage: boolean; // default: false
config.sortedMedian: boolean; // default: false
config.resetSortOnClickOutside: boolean; // default: false
Example, if your table looks like this:
Series | COL 1 | COL 2 | COL 3 | Total | Average | Median |
---|---|---|---|---|---|---|
s1 | 0 | 1 | 2 | 3 | 1 | 1 |
- To make COL 1 and COL 2 sortable, set
sortedDataColumnIndices: [0, 1]
- To make the Series column sortable; set
sortedSeriesName: true
- To make the Total column sortable, set
sortedSum: true
- To make the Average column sortable, set
sortedAverage: true
- To make the Median column sortable, set
sortedMedian: true