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

Add sortPath to ColumnValue/TableSort objects #10

Open
billdami opened this issue Aug 10, 2020 · 0 comments
Open

Add sortPath to ColumnValue/TableSort objects #10

billdami opened this issue Aug 10, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@billdami
Copy link
Member

In the onUpdateSorts action in the table component, we should iterate over the passed in TableSort objects and find their associated ColumnValue in this.columns by its valuePath. From there we should either merge in the entire ColumnValue or at the very least an optional sortPath property from it. These merged objects are what get sent in the updateSorts arg action.

This will allow the user to supply custom sort keys that get sent to the API, if needed.

@billdami billdami added enhancement New feature or request help wanted Extra attention is needed labels Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant