Hi,
I read https://theme.co/docs/parameters#creating-your-first-parameters and https://theme.co/docs/parameters#control-types-icon but still don’t understand how to wire further parameters to elements.
There it is said:
“Next, we need to wire up our Parameters so that our controls are outputting properly. To do this, we’ll be using Dynamic Content in the form of {{dc:p:__key__}}
, where __key__
is the value of the string on the left side of the :
seen above.”
I understand that as long as it is about direct input in text fields, e.g. the text label of a button.
But where in the element settings do I enter the parameters that affect, for example, the icon of a button (graphic) or the color scheme?
For example I added an icon parameter to a button element as component:
“icon” : {
“type” : “fa-icon”,
“label” : “Icon”,
“initial” : “circle”
}
But I can’t replace the preset graphic icon with a string like {{dc:p:icon}}.
Where in the button properties do I have to enter {{dc:p:icon}} now?
The component/parameter tutorial to create buttons ends at the point where i would learn to wire other parameters (like colors, additional graphic icon etc.) with the options of the element.
Thanks for advice