No example shown for extending a component like image type
You extend the image as any other component, it's explained here. If you have a particular use case, it's up to you looking at the source of the component implementation
Read full answer below βQuestion
There is no examples for components like extending image types , the docs seems a little bit difficult to understand and comprehend , if there is example for customizing an image type or the image uploader for a separate component then it would be nice, because we have I have a use case in my project.
Answers (3)
You extend the image as any other component, it's explained here. If you have a particular use case, it's up to you looking at the source of the component implementation
I am facing the same difficulty as @revdfdev - when following the documentation example to extend an existing component, I am struggling to comprehend. For example the documentation says: what does one put into the { ... }? This is never explained - just a bunch of dots. If I define model as then t...
When you extend the default properties it works like that: If you need to have propB merged with the one from Component A, you would need something like that Interesting, in the above example, I get the attribute test without explicitly declaring it? Strings fallbacks to a simple text trait type 'a...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3541
What is the idiomatic way to append and remove classes from components?
Hey there π Love the editor! We're using traits to modify what classes a component has, but that feels a bit hacky as you have to redeclar...
Issue #1428
Define or hide properties for specific components
Hi, I'm wondering if there is the possibility to define properties for specific components. I mean, when I select the component Image I wou...
Issue #2404
How to observe children changes in component
Is there an easy way to subscribe/listen to changes in the components/children of my custom component type? Perhaps an event I can subscrib...
Issue #3392
Allow dynamic droppable configuration using a function
I have a requirement where I cannot use selectors to determine if an element is droppable. For example: The "child" component must be withi...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins βPremium plugins ship with support, regular updates, and production-ready features β save days of integration work.
Browse premium plugins βBrowse Plugin Categories
Jump directly to plugin category pages on the marketplace.