Is there a way to implement "tags" to determine if an item can be dropped into a container?
See original GitHub issueI’m building a ui builder, and I have a more complicated use case than just the type
prop can handle, and I would like to have something like tags instead of just the “group”.
Example:
First off everything should be draggable into the sidebar,
NavLink
s, Image
s, and Text
Should be able to put into the Nav
component,
Everything except NavLink
s should be able to get put into the Content
component
I imagine this could be implemented by having tags on items and on the containers, and only allowing drags if the container has at least one tag that the item has
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Container and Empty Tags in HTML - GeeksforGeeks
The tags that do not contain any closing tags are known as empty tags. Empty tags contain only the opening tag but they...
Read more >Best practices for tags and tag managers - web.dev
Require approval for container changes # First-party code typically goes through review and testing before deployment - treat your tags the same. Adding...
Read more >Container export and import - Tag Manager Help
Click View Detailed Changes to see a list of all the items that will be affected. Once you are satisfied with the changes...
Read more >Self-Tie Container Tags - Healthmark Industries
Self-Tie Container Tags : Compatible with various tracking and tracing systems, the container tag serves to identify contaminated containers when self-adhesive ...
Read more >Image tag best practices - Azure Container Registry
Recommendation: Use stable tags to maintain base images for your container builds. Avoid deployments with stable tags, because those tags ...
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 Free
Top 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
@Krischkros no sure i follow. what i offered above is to dynamically set the
type
of each zone right when the dragging starts based on which item is being dragged. can you further explain how this doesn’t meet your needs?@Krischkros if you get errors then it is a bug that needs to fixed. would be good if you could reproduce it in a REPL