Issue #1144Opened May 29, 2018by fernandoagarcia0 reactions

[Question]: Custom property to change multiple settings

Question

Is there a way to extend a current property or create a new one to change multiple properties? I have a component in which I would like to change font-size and padding-left, padding-right etc within one property setting using a radio. But I noticed there is only one value set per option. Is there a way to change multiple values at once?

Answers (3)

artfMay 31, 20180 reactions

Hi Fernando, you can find more about the Style Manager API here

fernandoagarciaJune 1, 20180 reactions

@artf My apologies. I meant to say that I would like to target width, padding-left, padding-right within one single property. Perhaps using a radio. I couldn't find an example of that in the docs. Was wondering if it was possible.

artfJune 1, 20180 reactions

Nope, style manager works per property. But you can create custom behaviors with Traits, in your case you can change the style

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.