Hi,
I am trying to use colours on a checkbox based on if it’s selected. I am using the following code and it doesn’t work.
- type: component.checkbox
instanceId: chkbox
options:
label: "checkbox"
color:
- when: =(@ctx.components.chkbox.state.value = null)
color: color2
- when: =(@ctx.components.chkbox.state.value = true)
color: color4
Any ideas
Thanks,
Adam.