Issue #1144πŸ’¬ AnsweredOpened May 29, 2018by fernandoagarcia0 reactions

Custom property to change multiple settings

Quick answerby artf

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

Read full answer below ↓

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)

artfβ€’ May 31, 2018

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

fernandoagarciaβ€’ June 1, 2018

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

artfβ€’ June 1, 2018

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

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.