-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add options for default column order #2504
Comments
Thanks for opening this issue!
|
Addition: |
The auto-sort sorts the rest of the fields alphabetically, not randomly, that's what it's supposed to do anyway. Did you check whether |
I did do some digging but I could try again. This is what the columns in one of my classes look like in a fresh browser Doing this does not affect the order. columnPreference: {
"Progress": [{name: "chapter"}, {name: "user"}, {name: "progress"}]
} It seems to me that this should work based on the code here: ColumnPreference.js:100 First it adds the columns in localstorage, then objectId, then the defaultPrefs and lastly all the others in a convenient order since there is no sorting going on from what I can tell. Actually..., Safari was probably not as clean as I thought. I opened they dashboard in a new icognito window and this is the result: So it does work. But there is still a minor problem here. Even if I never added any clientside custom ordering to the Progress class the dashboard saves the order in my localstorage and applies it with priority the next time I open the dashboard. Meaning that server side ordering changes won't affect the client if they ever opened the dashboard before. |
New Feature / Enhancement Checklist
Current Limitation
With many columns we often want to see ex username and email before other less relevant fields. Currently the four system columns appear first and then the rest of the fields have a random? order.
Feature / Enhancement Description
Forcing the columns to be in the same order that is specified in the
columnPreference
field. All non-mentioned columns can come in a random order in the end.Example Use Case
All dashboard users store their own ordering in localStorage, but I don't want everyone to need to create their own order for 10ths of classes. It would be good to provide a sensible and customised default for all users.
Alternatives / Workarounds
None which I am aware of.
3rd Party References
The text was updated successfully, but these errors were encountered: