Closed yosiasz closed 12 months ago
@yosiasz, Yes, JavaScript function will work.
We plan to add support for external CSS and JavaScript scripts, which will allow to include data tables modules, which display sortable tables. Will it work for your use case?
wow!!! I was just about to ask about external CSS and JavaScript scripts. Always one step ahead of the game champ! @mikhail-vl
for now I am just going with this
SortData = () => {
console.log('Pre sort', data.data)
data.data.sort((a, b) => a.UsedNumeric - b.UsedNumeric);
console.log('After sort', data.data)
return data;
};
probably should use ... spread
@yosiasz Should be ready end of the week to test.
Greetings,
Can one enable column sorting on this super awesome plugin? So what I am thinking is give the following data
The panel would only display, Name and Metric column. But clicking on that column sorts it on the Value data point.
I think typing this out has given me an idea. Via a js function one could reorder the data. 🦆
Thanks!