-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Option to disable draggable for specific rows #110
Comments
Hi @Orlay86, Just published the new version. I have added New Props called ignore_rows which is array basically You can pass the index or row that you want's to ignore. Note: If you are using Body slot then you needs to handle the class thing manually: Example:
Please let me know if you have any questions. Thanks, |
Hi @Orlay86 , Added New props. ignore_cols and ignore_rows. Closing this issue let me know if you have any questions Thanks, |
Hi, excuse me for answering right after you closed the issue, I couldn't test it until right now. But, in my use case I am not sure how to properly implement the properties.
And in that component it's basically the definition of the q-tr etc.:
How or rather where do I use the new ignore_rows property here if I want only the rows under the v-else not to be draggable? Could you help me out here or give some pointers please? Thanks a lot in advance, and thanks again for your help so far already! |
: ignore_rows="[0]" it takes Index of row that you want's to ignore same for columns |
If you are using body slot then just add the class based on the condition that you want. You just need's to add 'ignore-elements' class which row you want to ignore. |
Thanks a lot for the answer! I've ran in a bit of an issue though, not sure if you can help or if that is a "bug" or just the way the component internally renders the table rows, but if I use v-if / v-else-if / v-else for the definition of q-tr, the "ignore-elements" class only works on the first q-tr (e.g. in my case the v-if). |
Hi @Orlay86 , I can't help direct. Please create some codepen or sample repo with sample data then I can help. Thanks, |
Hi, I tried to setup the codepen here: But I couldn't get the extension itself to work, tbqh I just don't know how to. If you still need it to help, I can try to setup a working repo for the issue. |
Hi @Orlay86, Apologies for late reply. It's bcz on the drag start it's not checking the ignore elements. I just published the new version. It should Work now.
This is working. Please check and let me know if it works. Thanks, |
Closing this issue |
Hi,
maybe I am overlooking this option, but I couldn't figure it out on my own.
Is it somehow possible (via class selector e.g.) to disable draggable for a row/column (while keeping it for the others)?
Thanks a lot for you great work!
The text was updated successfully, but these errors were encountered: