Hi, maybe there already is a way of doing this, but I have not yet figured it out. Let’s say we have designed a component with a limited set of parameters. I am looking for a way to change various pieces of design when one changes one parameter. Two examples:
- I have a “choose” parameter “color scheme” that let’s me pick: “light” and “dark”. In my JSON, I would set for example three variable, such as “text color”, “bottom color”, “background color”, to different values depending on the choice. When designing the element, I could for example access those variables with {{dc:p:color-scheme.text-color}}, and that value is of course different depending on the choice “light” vs. “dark”.
- I have a Grid layout with placed cells (specific x-start, x-end values, etc.). I have a “choose” parameter “Design” that let’s me pick “Design 1”, “Design 2” (for example: text on the left, image on the right for design 1, and the opposite for design 2), which requires to set SEVERAL numeric values for the placement of the cells (x-start etc). Again, in the JSON definition, for each choice, one could assign all of these values to the numerous variables that are affected by the design choice, and one could access it with something like {{dc:p:design.x-start}}