Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is impossible to change the maskType property choices property #5788

Closed
andrewtelnov opened this issue Aug 4, 2024 · 0 comments · Fixed by #5789
Closed

It is impossible to change the maskType property choices property #5788

andrewtelnov opened this issue Aug 4, 2024 · 0 comments · Fixed by #5789
Assignees
Labels
Milestone

Comments

@andrewtelnov
Copy link
Member

andrewtelnov commented Aug 4, 2024

choices function for maskType property should return mask types.
It would allow to customize choices for the property grid in the way we used to:
Survey.Serializer.findProperty("text", "maskType").setChoices(["none", "pattern", "numeric"], undefined);
The code can be the following:

choces: (obj) => {
 const res = ["none"];
  Serializer.getChildrenClasses("masksettings").forEach(cl => res.push(res.name));
 return res;
}
@novikov82 novikov82 transferred this issue from surveyjs/survey-library Aug 15, 2024
novikov82 added a commit that referenced this issue Aug 19, 2024
novikov82 pushed a commit that referenced this issue Aug 19, 2024
@OlgaLarina OlgaLarina self-assigned this Aug 20, 2024
@OlgaLarina OlgaLarina added this to the v1.11.12 milestone Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants