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

Sort column programmatically #6

Open
newbro opened this issue Nov 22, 2017 · 1 comment
Open

Sort column programmatically #6

newbro opened this issue Nov 22, 2017 · 1 comment

Comments

@newbro
Copy link

newbro commented Nov 22, 2017

Is there anyway we can apply multi sorting programmatically without relying user to actually click on column header to trigger the directive?

@dannynelson
Copy link
Contributor

Hi @newbro. Unfortunately, there is no way to do this right now. You can add st-sort-default="true" for default sort. You can also use something like lodash _.orderBy to sort the rows programmatically, but that will not update the table header classes.

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

2 participants