Replies: 3 comments 2 replies
-
First of all create a block with "icon" type, then with creating a new type you can do everything you want like add traits and change your icon content. An example:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Unfortunately this example doesn't work. I tried to implement, but now the editor doesn't render my component and the value passed to trait field is ignored |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I´m building a page builder with grapesJS and I need to build a icon block, where i have to load a svg icon and update the svg content to render a new svg icon. I created a block using data-gjs-type="icon" and a trait to this block, but I cannot update the svg value. I will let the code below:
Beta Was this translation helpful? Give feedback.
All reactions