Issue #3246✓ SolvedOpened January 23, 2021by ThetripGr2 reactions

Is it possible to use existing trait types in new custom traits? (e.g the colorpicker)

Quick answerby artf2

Not at the moment, I'm working on a new UI module that will allow the reuse and override of internal UI elements.

Read full answer below ↓

Question

I would like to create a new custom trait to use, that has the input of the color picker and a checkbox so that the end result is either the predefined color coming from the checked checkbox or if unchecked choosing from the picker. This is too specific for my case so my question is if i can use pre-existing trait types when creating a new one in general. I am coming straight from the documentation , i may have missed something but there was no mention of it so i got curious, thanks in advance!.

Answers (2)

👍 Most helpfulartfJanuary 28, 2021

Not at the moment, I'm working on a new UI module that will allow the reuse and override of internal UI elements.

GJSBlockMay 17, 2026

Thanks for reporting this, @ThetripGr. Great question about Is it possible to use existing trait types in new custom traits? (e.g the colorpicker). The recommended approach with GrapesJS is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for t...

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.