[QUESTIONS] Make a component that can't be removed.
Question
Hi there,
Is it possible to make a component that can't be removed or without remove the trach icon when it clicked?
Thanks, looking forwards.
Answers (3)
I think what you want is data-gjs-removable="false" add that as an attribute to your div like.
<div data-gjs-removable="false">Hello World!</div>Hi, @Skovmissen Thanks for your responses.
It's worked.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1324
Remove attributes from a component
Hi @artf I don't know if it is possible to remove an attribute from a component. In our project I'm injecting a custom attribute from a cus...
Issue #1982
[QUESTIONS] addcomponent after the selected component
how do I make it possible to add new components after the component I selected, at this time I use editor.DomComponents.addComponent (block...
Issue #1927
[QUESTIONS] Sender.set('active') error Maximum call stack size exceeded
I have a button with the show-left command, I want to make when the button is clicked a second time (or more) remains active, but when runn...
Issue #1074
[QUESTIONS] keeping data-gjs- tags
Hello, great stuff. Thanks.Is there any possibility to not remove data-gjs- tags when loading html template or return them with getHtml()?
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.