Hi, this is my parameter setting for headings. It shows what kind of heading, what appearance and a few other things. Everything works fine, but for the appearance the size field (look like H1, H2, H3…) is not displayed correctly. The “object Object” field is always displayed first with the arrow pointing to the left. As soon as I click on the arrow, I can choose and it’s displayed the way I want it. And it also works. But it’s a bit annoying in the workflow. Do I’ve a mistake in the parameter code or is there something I can improve?
Thank You!
HTML-Tag
{{dc:param:HeadTag}}
Font-size:
{{dc:param:HeadSize.FontSize}}
Font-height:
{{dc:param:HeadSize.Height}}
P.S.
I know I can take p instead of param, but the dynamic content works like this.
{
"headContent" : {
"label" : "Inhalt",
"type" : "group",
"params" : {
"text" : {
"label" : "Text",
"type" : "text-editor",
"initial" : "Überschrift"
},
"href" : {
"label" : "URL",
"type" : "text",
"placeholder" : "z.B. example.de"
},
"target" : {
"type" : "choose",
"label" : "Ziel",
"initial" : "_self",
"options" : [
{"label" : "Intern", "value" : "_self"},
{"label" : "Extern", "value" : "_blank"}
]
}
}
},
"HeadTag" : {
"label" : "Tag",
"type" : "choose",
"initial" : "h1",
"options" : [
{ "value" : "h1",
"label" : "H1" },
{ "value" : "h2",
"label" : "H2" },
{ "value" : "h3",
"label" : "H3" }
]
},
"HeadSize" : {
"label" : "Size",
"type" : "choose",
"initial" : "H1",
"options" : [
{ "value" : {
"FontSize" : "2.5em",
"Height" : "1.2"
},
"label" : "H1" },
{ "value" : {
"FontSize" : "2em",
"Height" : "1.2"
} ,
"label" : "H2" },
{ "value" : {
"FontSize" : "1.6em",
"Height" : "1.2"
} ,
"label" : "H3" }
]
},
"headDesign" : {
"label" : "Überschrift Design",
"type" : "group",
"params" : {
"textColor" : {
"label" : "Text Color",
"type" : "color-pair",
"initial" : {
"base" : "#FFFFFF",
"alt" : "#FFFFFF"
}
},
"topMargin" : {
"label" : "Margin Top",
"type" : "dimension",
"initial" : "0em",
"slider" : true,
"keywords" : [ "auto" ],
"units" : [ "px", "em", "rem" ],
"isVar" : true
},
"rightMargin" : {
"label" : "Margin Right",
"type" : "dimension",
"initial" : "0em",
"slider" : true,
"keywords" : [ "auto" ],
"units" : [ "px", "em", "rem" ],
"isVar" : true
},
"bottomMargin" : {
"label" : "Margin Bottom",
"type" : "dimension",
"initial" : "2em",
"slider" : true,
"keywords" : [ "auto" ],
"units" : [ "px", "em", "rem" ],
"isVar" : true
},
"leftMargin" : {
"label" : "Margin Left",
"type" : "dimension",
"initial" : "0em",
"slider" : true,
"keywords" : [ "auto" ],
"units" : [ "px", "em", "rem" ],
"isVar" : true
}
}
}
}

