Map color parameter

Hello,

I’ve added a parameter to my Text component like this:

“textColor” : {
“label” : “Text”,
“type” : “color-pair”,
“initial” : {
“base” : “#999999”,
“alt” : “#ffffff
}

And it outputs the color picker. How do I map the color picker output to the text color inside the element?

Straight from the docs.

{{dc:p:textColor.base}} and {{dc:p:textColor.alt}} respectively.

You stick those in the color settings of the element.

AAAAHHHHH

In the color value box. Doh. took me a few seconds to figure that out. Thanks for that.

Thanks, @urchindesign! You rock.

Glad you’re sorted, @bill_hodgson. Yes, color pairs are one control where there’s an “implied” layer of data you have to access with the base and alt keys respectively.

Cheers!