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

Fields & widgets #4

Merged
merged 7 commits into from
Dec 21, 2015
Merged

Fields & widgets #4

merged 7 commits into from
Dec 21, 2015

Conversation

n1k0
Copy link
Collaborator

@n1k0 n1k0 commented Dec 21, 2015

This will prepare introducing uiSchema for specifying the kind of widget we want for a given JSONSchema data type.

  • A field is a container for a label and (a) widget(s)
  • A widget is basically the html input form tag (input, select, etc.)


export default function RadioField({schema, formData, options, onChange}) {
// Generating a unique field name to identify this set of radio buttons
const name = Math.random().toString();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have this for the other widgets ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope as this is really specific to radio buttons.

@n1k0 n1k0 force-pushed the fields-widgets branch 2 times, most recently from b258439 to fd08dd8 Compare December 21, 2015 16:49
@n1k0 n1k0 changed the title [WiP] Fields & widgets Fields & widgets Dec 21, 2015
@n1k0
Copy link
Collaborator Author

n1k0 commented Dec 21, 2015

Landing this with r=me.

n1k0 added a commit that referenced this pull request Dec 21, 2015
@n1k0 n1k0 merged commit 29b2bc8 into master Dec 21, 2015
@n1k0 n1k0 deleted the fields-widgets branch December 21, 2015 21:45
epicfaace pushed a commit that referenced this pull request Feb 4, 2022
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