-
Notifications
You must be signed in to change notification settings - Fork 37
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
Column sorting #42
Comments
@knownasilya maybe, tell me more |
Basically a sort on a single column only, so clicking a column name will make it ascending (or descending by default) with some kind of font character representing up/down. If you click on the column name again it would toggle the sorting between the two. Clicking on another column would sort by that column, and remove sort from previous column. Default sort would be by id in ascending order (I think that's the order currently). |
I like it, but I think this is best for a plugin. I actually want to remove the search capability out of this module and move to a plugin for people to add. My reasoning is to keep ember-admin as thin as possible so those using and augmenting don't have to opt-into code they might not necessarily use. |
I guess the question is how do we add a hook to be able to make a plugin of the sort? |
Confirm. I'll give this some thought as it is may require some upstream changes in ember-cli itself to pull off properly. Off-hand I think ember-admin's base templates should include some named outlets that are unused but can be put to use by certain plugins. I am OK with including named outlets for specific functionality, like |
👍 Also, for what it's worth, I',m having a hard time imagining a situation where you have large tables of data that you wouldn't want to sort by column |
Looking forward to ember-engines being utilized here so plugins are super easy. |
@bcardarella would you accept a PR that adds column sorting functionality?
The text was updated successfully, but these errors were encountered: