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

Dynamic data and column sort question. #12

Open
userquin opened this issue Mar 25, 2017 · 2 comments
Open

Dynamic data and column sort question. #12

userquin opened this issue Mar 25, 2017 · 2 comments

Comments

@userquin
Copy link

Is there a way to provide external sorting for dynamic data?

The sequence will be:

  1. user click on th[sort-by]: fire sort column change (bubles: true) (sort icon must not change until 4)
  2. listen to sort change (mediator or dom-host of brainy-table) and fire iron-ajax request for current sort
  3. the iron-ajax result is set to table
  4. sort order updated on th[sort-by] and reflected in its icon
@web-padawan
Copy link
Contributor

Good suggestion. We should then add a cancellable event, so mediator could use preventDefault on it.
I'm open for a PR, so feel free to contribute if you have an opportunity.

@userquin
Copy link
Author

userquin commented Mar 25, 2017

I have a branch in my account, but I dont finish the sample to test and the demo: just a few changes:
https://github.com/userquin/brainy-table/tree/dynamic-sort

just change brainy-th and brainy-table: see comments and see changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants