-
Notifications
You must be signed in to change notification settings - Fork 471
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
🚀 - Allow tuiSortable to configured dynamically #8244
Comments
We need to allow passing true / false to |
Is something ready to consume regarding this? I need to enable sorting only for columns which are configured to be sortable. Otherwise, I would like to fix it in the source code if nobody has been assigned to it. |
Here's what needs to be done, you can make a PR. |
@waterplea I am on it, thanks |
@evantrimboli could you clarify the issue please, the sorting is enabled dynamically by passing EDIT: Oh, nevermind, got it. Problem was that sortable overrides it in |
Description
Consider the following component structure. Note this isn't intended to be 100% correct, just for illustration.
As far as I can tell, because it's not possible to dynamically add a directive, to toggle sorting using a condition, I need to branch on whether it's sortable and then repeat the th for a second time and duplicate the code.
I'm not sure of the best way to solve it, but it would be nice to be able to provide a flag to the directive which would toggle it on or off.
The text was updated successfully, but these errors were encountered: