Skip to content

Commit

Permalink
change visibleIf property editor from "text" to "expression": surveyj…
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Feb 3, 2017
1 parent a6c5254 commit bad882c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@ export class PageModel extends Base implements IPage, IConditionRunner {
protected onNumChanged(value: number) {
}
}
JsonObject.metaData.addClass("page", ["name", { name: "navigationButtonsVisibility", default: "inherit", choices: ["iherit", "show", "hide"] }, { name: "questions", baseClassName: "question" }, { name: "visible:boolean", default: true }, "visibleIf:text", "title"], function () { return new PageModel(); });
JsonObject.metaData.addClass("page", ["name", { name: "navigationButtonsVisibility", default: "inherit", choices: ["iherit", "show", "hide"] }, { name: "questions", baseClassName: "question" }, { name: "visible:boolean", default: true }, "visibleIf:expression", "title"], function () { return new PageModel(); });
2 changes: 1 addition & 1 deletion src/questionbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ export class QuestionBase extends Base implements IQuestion, IConditionRunner {
}
supportGoNextPageAutomatic() { return false; }
}
JsonObject.metaData.addClass("questionbase", ["!name", { name: "visible:boolean", default: true }, "visibleIf:text",
JsonObject.metaData.addClass("questionbase", ["!name", { name: "visible:boolean", default: true }, "visibleIf:expression",
{ name: "width" }, { name: "startWithNewLine:boolean", default: true}, {name: "indent:number", default: 0, choices: [0, 1, 2, 3]}]);

0 comments on commit bad882c

Please sign in to comment.