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

Feature - ability to sort panels #197

Open
patrickkusebauch opened this issue Jun 16, 2016 · 1 comment · May be fixed by #565
Open

Feature - ability to sort panels #197

patrickkusebauch opened this issue Jun 16, 2016 · 1 comment · May be fixed by #565

Comments

@patrickkusebauch
Copy link

Right now panels are render on the order they are added into the Bar class. It would be nice to have the option to sort the panel before rendering (maybe based on ID), so that you don't have to visually scan all the panels to find the one you are looking for.

If you find this to be a good idea, I am willing to write a PR for it.

@janbarasek
Copy link
Contributor

For sorting, there could be a callback function where a particular implementation registers its own sorting logic that gets an array of panels and returns it in sorted order. The callback should return an array of panel name keys (array<int, string>) so the new unknown panel cannot be added or removed (security prevention).

@patrickkusebauch patrickkusebauch linked a pull request Jun 9, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants