Issue #3060πŸ’¬ AnsweredOpened Oct 1, 2020by revdfdev0 reactions

No example shown for extending a component like image type

Quick answerby artf

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)

artfβ€’ Oct 10, 2020

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

abulkaβ€’ Feb 8, 2021

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...

artfβ€’ Feb 19, 2021

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

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.