I have a context that I want to render a enum value which will have the suggestion value based on another property. Example
- We have 2 properties
a
andb
- When
a
istrue
,b
can only be one of:10
20
30
(suggestion) - When
a
isfalse
,b
can only be one of:40
50
60
(suggestion)
I wonder if we could add a neweffect
besideHIDE
SHOW
DISABLE
ENABLE
. It is possible?
It could seem like this
{
"type": "Control",
"scope": "#property/B",
"mode": "select",
"rule": {
"effect": "CONDITIONAL_SHOW",
"condition": {
[
{
"scope": "#/properties/A",
"schema": { const: true },
"suggestions": [
"10",
"20",
"30"
]
},
{
"scope": "#/properties/A",
"schema": { const: false },
"suggestions": [
"10",
"20",
"30"
]
},
]
}
}
}