Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaterialComboBox Sort not working #436

Open
DWinklerSaascom opened this issue Aug 8, 2022 · 0 comments
Open

MaterialComboBox Sort not working #436

DWinklerSaascom opened this issue Aug 8, 2022 · 0 comments

Comments

@DWinklerSaascom
Copy link

Good Morning,

we are trying to change the sort behavior, but the setSorter Interface is an empty Function with no return.
If u set the Sorter in your Demo, the Option List will be empty (no Return = no List of Options)

I think the Sorter Options in JsComboBoxOptions is using the wrong FunctionInterface (Functions.Func).

in JS, it would be something like

sorter: function(data) { return data.sort(function(a, b) { return a.text < b.text ? -1 : a.text > b.text ? 1 : 0; }); }
in Material GWT
sorterComboBox.setSorter(() -> { ///What to DO? });

With the data as parameter and return the sorted List.

Can u please check if we have a Problem or can u explain how it was intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant