Computed Properties #6475
Unanswered
joekjoshua
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wish to make a select input UI for property named "Simple Layout" with values ['column', 'row', 'none'].
Such a property doesn't exist in css. However, based on the selected value of Simple Layout , I set the "css properties" display and flex. And if display and flex are updated elsewhere, the value of simple layout is calculated.
Is there a way to achieve this?
Breaking down my understanding further.
I imagine I need two conversion functions.
{ Simple Layout } => { display, flex }
{ display, flex } => { Simple Layout }
I tried creating a composite Property with sub properties [layout, display, flex]
Beta Was this translation helpful? Give feedback.
All reactions