Possibility to disable elements?
See original GitHub issueHi,
I have a table and for a specific reasons I have to use tbody
as sortable items. So the container is the table
and sortable items are tbody
. I also have thead
element in a table and when I sort tbody elements I can drop them above thead
which is not what I want.
Is there way to prevent that? If not, that would be a nice feature to disable certain elements.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Disable HTML elements - Orange digital accessibility guidelines
It is still possible to disable a link by following 3 steps: remove the href attribute so that it can no longer receive...
Read more >HTML disabled Attribute - W3Schools
The disabled attribute is a boolean attribute. When present, it specifies that the element should be disabled. A disabled element is unusable.
Read more >HTML attribute: disabled - HTML: HyperText Markup Language
The Boolean disabled attribute, when present, makes the element not mutable, focusable, or even submitted with the form.
Read more >Best approach to disable elements - Stack Overflow
The old-fashioned way which I used to disable these buttons was to apply the following CSS to every and each one of them....
Read more >Idea - Disable elements in actions - OutSystems
In this case it would be an addition to the already existing possibility of disabling the elements. 07 Nov 2019.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, you can do that by setting non-drag-area-selector in the Container to some class like “.drag-disabled” and then setting the class conditionally in the Draggable.
For the specific reasons my structure is like demonstrated below where I have multiple
tbody
elements that contain 2 rows. It means that the draggable items aretbody
elements so I can’t use them as a container. I know this is a bit unusual situation, but I thought I’ll ask to see if there’s a way to go around it.I’ll close this issue for know. Thanks!