Skip to content

Commit

Permalink
Add overriding properties (visibleIf/enableIf/requriedIf) for panel (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov authored Aug 17, 2023
1 parent ad689f6 commit 09352ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1838,11 +1838,11 @@ Serializer.addClass(
visible: false,
isLightSerializable: false,
},
{ name: "visible:switch", default: true },
{ name: "visible:switch", default: true, overridingProperty: "visibleIf" },
{ name: "readOnly:boolean", overridingProperty: "enableIf" },
"visibleIf:condition",
"enableIf:condition",
"requiredIf:condition",
"readOnly:boolean",
{
name: "questionTitleLocation",
default: "default",
Expand Down Expand Up @@ -1870,7 +1870,7 @@ Serializer.addClass(
default: "default",
choices: ["default", "collapsed", "expanded"],
},
"isRequired:switch",
{ name: "isRequired:switch", overridingProperty: "requiredIf" },
{
name: "requiredErrorText:text",
serializationProperty: "locRequiredErrorText",
Expand Down

0 comments on commit 09352ba

Please sign in to comment.