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 support for multiple columns with sortDirection definition #151

Closed
uap-universe opened this issue Nov 23, 2023 · 0 comments
Closed

Add support for multiple columns with sortDirection definition #151

uap-universe opened this issue Nov 23, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@uap-universe
Copy link
Collaborator

Current Behavior

sortDirection can only be successfully specified for one column

Future Behavior

sortDirection can be specified for an arbitrary number of columns.
The order in which the sort options are applied, is from left to right.

Benefit

Sometimes you want to sort the table by default across two or more columns (e.g. last name, first name).
The only way this is possible now, is to wait for the table to load and call setSort() on the data source after initialization.
This is quite cumbersome. It's still necessary when you want to chose a different order in which the sorting is applied, but in most cases, people would want the table sorted the columns from left to right. The possibility to specify that via the settings removes the need for extra initialization code.

@uap-universe uap-universe added the enhancement New feature or request label Nov 23, 2023
@uap-universe uap-universe added this to the 3.2.0 milestone Nov 23, 2023
@uap-universe uap-universe self-assigned this Nov 23, 2023
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

1 participant