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

how to set sort-by dynamically #371

Open
childe opened this issue Jun 4, 2024 · 0 comments
Open

how to set sort-by dynamically #371

childe opened this issue Jun 4, 2024 · 0 comments

Comments

@childe
Copy link

childe commented Jun 4, 2024

I have a table comprising two columns: name and partition_count.

If partition_count exceeds 100, I want the table to be sorted by name, or else by partition_count.

I tried to set "sortBy" dynamically within mounted(), but it did not work. It only followed by the "sortBy" configured in data().

childe added a commit to childe/vue3-easy-data-table that referenced this issue Jun 6, 2024
A hacky workaround, for reference only.

implementation of HC200ok#371

(sortBy sortType) => clientSortOptions => items
@childe childe mentioned this issue Jun 6, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant