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

Issue#37: add support for radio button #149

Closed
wants to merge 16 commits into from

Conversation

saicheck2233
Copy link

Issue#37: Support for radio button inputs

Link: Issue#37

Description: Add support for radio button inputs, below is the schema used for generating a radio button. format:radio and enum is needed for generating radio buttons.

{
    "$schema": "http://json-schema.org/draft-03/schema#",
    "type": "object",
    "properties": {
        "pageSize": {
            "type": "boolean",
            "format": "radio",
            "title": "Page size",
            "description": "Number of records per page",
            "enum": [
                10,
                25,
                50,
                100
            ]
        }
    }
}

Pic before changes:
image
Before having radio button support, it falls back to dropdown selection.

Pic after changes:
image
After radio button format is implemented, now it is showing radio button.

@saicheck2233 saicheck2233 deleted the issue#37 branch June 29, 2023 08:32
@saicheck2233 saicheck2233 restored the issue#37 branch June 29, 2023 08:33
@saicheck2233 saicheck2233 deleted the issue#37 branch July 11, 2023 00:55
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

Successfully merging this pull request may close these issues.

2 participants