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

Implement select with JSON form schema standard #8

Open
videni opened this issue Jul 11, 2019 · 0 comments
Open

Implement select with JSON form schema standard #8

videni opened this issue Jul 11, 2019 · 0 comments

Comments

@videni
Copy link

videni commented Jul 11, 2019

implement select with json form schema standard.

 "selectWidgetOptions": {
      "title": "Custom select widget with options",
      "type": "string",
      "enum": [
        "foo",
        "bar"
      ],
      "enumNames": [
        "Foo",
        "Bar"
      ]
    }

instead of

"select": {
      "id": "$root/properties/string/properties/select",
      "type": "string",
      "title": "下拉框组件",
      "description": "下拉框组件",
      "$componentType": "select",
      "$options": [
        {
          "label": "选项1",
          "value": "值1"
        },
        {
          "label": "选项2",
          "value": "值2"
        }
      ]
    },

For select with auto complete ability, seems there is no solution in JSON form schema document, but we can implement it with custom widget. just leave this to developer.

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

1 participant