Skip to content

Color picker param not available in UI #2

Description

@tikidave

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:

image

However it does pick up the default props in the indicator:

style: {
    value: {
        color: close > priorClose ? this.props.upColor : this.props.downColor
    }
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions