Skip to content

Commit

Permalink
Show tocLcation property if showTOC is true (#6745)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov authored Aug 18, 2023
1 parent e1194fe commit 221ef84
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7348,10 +7348,9 @@ Serializer.addClass("survey", [
name: "showTOC:switch",
default: false
},
{
name: "tocLocation",
default: "left",
choices: ["left", "right"],
{ name: "tocLocation", default: "left", choices: ["left", "right"],
dependsOn: ["showTOC"],
visibleIf: (survey: any) => { return !!survey && survey.showTOC; }
},
{ name: "mode", default: "edit", choices: ["edit", "display"] },
{ name: "storeOthersAsComment:boolean", default: true },
Expand Down Expand Up @@ -7393,9 +7392,7 @@ Serializer.addClass("survey", [
{
name: "questionStartIndex",
dependsOn: ["showQuestionNumbers"],
visibleIf: function (survey: any) {
return !survey || survey.showQuestionNumbers !== "off";
},
visibleIf: (survey: any) => { return !survey || survey.showQuestionNumbers !== "off"; }
},
{
name: "questionTitlePattern",
Expand Down

0 comments on commit 221ef84

Please sign in to comment.