Inside the predef module, there is a color option:
color(defValue) {
return {
type: ParamType.COLOR,
def: defValue
};
}
I have implemented it in the params code this way:
params: {
upColor: predef.paramSpecs.color('lime'),
downColor: predef.paramSpecs.color('red'),
},
When the indicator is added, the color pickers are not available in the UI:

However it does pick up the default props in the indicator:
style: {
value: {
color: close > priorClose ? this.props.upColor : this.props.downColor
}
}

Inside the
predefmodule, there is acoloroption:I have implemented it in the
paramscode this way:When the indicator is added, the color pickers are not available in the UI:
However it does pick up the default
propsin the indicator: