Issue #3335Opened March 11, 2021by zachsnoek0 reactions

Creating trait with Style Manager property UI

Question

I have a component using the background-url Style Manager property:

editor.DomComponents.addType('mj-hero', {
    model: {
	defaults: {
            // ...
	    stylable: ['background-url'],
	},
    },
});

I would like to reuse this UI that is shown in the Style Manager for a background URL trait that shows up under "Settings":

Screen Shot 2021-03-11 at 12 28 27 PM

Is it possible to make a Style Manager property behave like a trait and show up in the "Settings" section, or would I have to create a new trait with this UI?

Thanks.

Answers (2)

artfMarch 12, 20210 reactions

Unfortunately, it's not yet possible, but there is a plan to add soon a new UI module that should allow the reuse of UI elements

zachsnoekMarch 12, 20210 reactions

:+1: Thank you!

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.