Issue #3037Opened September 22, 2020by PineTreeWild0 reactions

FEAT: get property value by component:styleUpdate event

Question

The Changed property name can only be got in component:styleUpdate event, but I cannot get the value of the property.

editor.on('component:styleUpdate', (comp, prop) => { // prop is the updated property name })

Thanks

Answers (1)

artfOctober 1, 20200 reactions

You can take the value directly from the component comp.getStyle()[prop]

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.