Skip to content
Discussion options

You must be logged in to vote

Yeah @protozoo I got it... what I'm trying to explain to you is in order to make use of the default canvas D&D mechanism you have to drop a component, there is no easy way around it right now.

To handle the "hide the green mark" problem, you can simply toggle a CSS (eg. targeting .gjs-placeholder) when you start/end the drag of your custom elements.
For the component itself, once it's dropped/created you can simply select the parent, open your dialog and then remove the dropped component.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@protozoo
Comment options

@artf
Comment options

artf Aug 3, 2023
Maintainer

@protozoo
Comment options

@artf
Comment options

artf Aug 7, 2023
Maintainer

Answer selected by protozoo
@protozoo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants