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

Make tables sortable #106

Open
bugsse opened this issue Apr 30, 2024 · 2 comments
Open

Make tables sortable #106

bugsse opened this issue Apr 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@bugsse
Copy link

bugsse commented Apr 30, 2024

When you get to 50+ servers finding the right one in the list gets a bit cumbersome since the tables are not sortable and seems to be randomly sorted by default.
Make the tables sortable by clicking the header field, ie sort by name by clicking on name, sort by memory by clicking on the RAM icon etc etc. Lots of free frameworks available to accomplish this without too much work, I've used https://datatables.net/ for similar projects but there are plenty of others.

I could help out a bit but I'm completely lost in the Laravel part so someone with more experience could probably do it a lot easier, faster and better. Also, I'm a terrible coder and would surely just make a mess. :)

@cp6 cp6 added the enhancement New feature or request label May 8, 2024
@cp6
Copy link
Owner

cp6 commented May 14, 2024

Good point. Datatables package actually is already included and sorting gets used on the labels, os etc pages https://demo.myidlers.com/labels

I think it wasn't used on the servers table initially because of how complex it is to get it sized right and then the different data types for RAM and disk e.g MB/GB GB/TB but it would be possible

@bugsse
Copy link
Author

bugsse commented Oct 24, 2024

I understand the complexity with different units in ram etc, but would it be possible to enable only on the "name" column?

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

No branches or pull requests

2 participants