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

Creator V2: Property grid does not support property.onPropertyEditorUpdate callback function #2490

Closed
andrewtelnov opened this issue Jan 1, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@andrewtelnov
Copy link
Member

andrewtelnov commented Jan 1, 2022

The min/max property editors doesn't chagne their input type on changing text question input type.
Here is "max" property definition:

    {
      name: "max",
      dependsOn: "inputType",
      nextToProperty: "*min",
      visibleIf: function(obj: any) {
        return !!obj && obj.isMinMaxType;
      },
      onPropertyEditorUpdate: function(obj: any, propertyEditor: any) {
        propertyEditor.inputType = obj.inputType;
      },
    }

"onPropertyEditorUpdate" function should be called initionally and then on changing "inputType" property.

@andrewtelnov andrewtelnov self-assigned this Jan 1, 2022
@andrewtelnov andrewtelnov added this to the 1.9.5 milestone Jan 1, 2022
@andrewtelnov andrewtelnov changed the title Creator V2: Property grid doesn Creator V2: Property grid does not support property.onPropertyEditorUpdate callback function Jan 1, 2022
andrewtelnov added a commit that referenced this issue Jan 1, 2022
andrewtelnov added a commit that referenced this issue Jan 1, 2022
@tsv2013 tsv2013 closed this as completed in 346aa2d Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant