Skip to content

issue#37: add support for radio button#7

Merged
saicheck2233 merged 1 commit intomasterfrom
issue#37
Jul 4, 2023
Merged

issue#37: add support for radio button#7
saicheck2233 merged 1 commit intomasterfrom
issue#37

Conversation

@saicheck2233
Copy link
Copy Markdown
Owner

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 merged commit b23f675 into master Jul 4, 2023
@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