Disabling property
Enabled if interface:
enabledIf?: { $eval: string; dependencies: string[]; }
Inside $eval you can write your own JS code, that must return true, false or undefined. If it returns true, prop is enabled.
{
"schema": {
"type": "object",
"properties": {
"numberInput": {
"type": "integer",
"enabledIf": "return false",
"title": "You can't change me!"
}
}
}
}
Last updated
Was this helpful?