multiselect icon indicating copy to clipboard operation
multiselect copied to clipboard

Custom sort function

Open stefangabos opened this issue 6 years ago • 1 comments

It's not clear from the documentation how to use a callback function for the sort parameter.

Basically, I want the panel on the left to be sorted alphabetically while the one on the right to have keepRenderingSort. The callback function attached to sort gets a single parameter, the option itself (it would be great to also get the panel where it comes from) but returning true or false seem to have the same effect of not making the panels work as if they would have keepRenderingSort set to true.

So, in short, I want to prevent the sorting but only for the right panel. Is this possible?

Thanks!

stefangabos avatar Aug 03 '17 18:08 stefangabos

Hi @stefangabos,

Nope that's not possible, but I don't mind adding this feature, or maybe you would like to do it and create a pull request?

crlcu avatar Sep 13 '17 10:09 crlcu