[QUESTION] Deleting the DomComponent within init()
Question
I need to limit certain Dom Components to one, because it would cause issues when the page is published - but I can't seem to find a way to delete the component within its own init().
Is there a better way, as it doesn't seem healthy to delete someone before it's fully created.
Thanks
Answers (1)
It would make sense to move such logic to a parent component
Related Questions and Answers
Continue research with similar issue discussions.
Issue #913
[Question] Using Style tag instead of css
Hi, I've been taking a look inside of the dom_components, but cant seem to figure out how to manually override the styling aspect. I need a...
Issue #1144
[Question]: Custom property to change multiple settings
Is there a way to extend a current property or create a new one to change multiple properties? I have a component in which I would like to...
Issue #713
Restrict Droppable Components to specific Component Types
So the wording of this may seem confusing, but essentially I'm trying to use gjs-droppable="" the same way one would use gjs-draggable=""....
Issue #2408
Event listener for undo?
I am listening for a component delete and move with removed() and sorter:drag:end. One last way (I hope) that I see the component move is b...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.