question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to implement "tags" to determine if an item can be dropped into a container?

See original GitHub issue

I’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, NavLinks, Images, and Text Should be able to put into the Nav component, Everything except NavLinks 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:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
isaacHagoelcommented, Feb 6, 2022

@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?

0reactions
isaacHagoelcommented, Feb 6, 2022

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found