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

Help plz #66

Closed
sumrakx opened this issue May 27, 2019 · 2 comments
Closed

Help plz #66

sumrakx opened this issue May 27, 2019 · 2 comments

Comments

@sumrakx
Copy link

sumrakx commented May 27, 2019

Hi i write simple code, but he not worked. What is a mistake?

formSchema: {
          type: 'object',
          properties: {
            "choice": {
              "type": "number",
              "ui": {
                //hidden: true,
                "widget": "select",
                "widgetConfig": {
                  "clearable": true,
                  "enumSource": [
                    {
                      "value": 1,
                      "label": "option1"
                    },
                    {
                      "value": 2,
                      "label": "option2"
                    }
                  ]
                }
              }
            },

            "user": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "ui": {
                "hidden": "dx: {{$root.choice === 2}}",
                "widget": "array-table"
              }
            }
          }
        }
@daniel-dx
Copy link
Collaborator

hi,
replace dx: {{$root.choice === 2}} to dx: {{$root.choice}} === 2

@sumrakx
Copy link
Author

sumrakx commented May 27, 2019

@daniel-dx snks.

@sumrakx sumrakx closed this as completed May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants