Issue #2290💬 AnsweredOpened September 25, 2019by JCKodel0 reactions

New trait type: component relationship

Quick answerby artf

Thanks @JCKodel for the suggestion, I like it but I also think it might a bit overwhelmed for being placed in the core library. Probable in this case it would be best to define a custom Trait

Read full answer below ↓

Question

I have a custom component that will render the results of a remote query inside a component, so, I added a text trait on my block manager so the user can select the query selector for the destination component.

It would be nice if there were a trait called "componentRelationship" that renders a target button. When we drag'n'drop that target button over a component inside canvas, the trait value is populated with the component query selector.

Answers (1)

artfSeptember 28, 2019

Thanks @JCKodel for the suggestion, I like it but I also think it might a bit overwhelmed for being placed in the core library. Probable in this case it would be best to define a custom Trait

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.