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

Step support for NumField #165

Closed
damienrobson opened this issue Jan 18, 2017 · 4 comments
Closed

Step support for NumField #165

damienrobson opened this issue Jan 18, 2017 · 4 comments
Assignees
Labels
Type: Feature New features and feature requests

Comments

@damienrobson
Copy link

When using either a NumField or AutoField, the increment/decrement step doesn't seem to be changeable. For instance, my schema has a Capacity value which should be a whole number, but using the arrow keys, I can enter 10.01, which is an invalid value in regards to my schema.

Does the ability to define a step size exist? I tried the following but it didn't do anything:

capacity: {
    optional: false,
    min: 1,
    type: Number,
    label: 'Capacity',
    uniforms: {
      step: 1,
    },
  },
@radekmie radekmie self-assigned this Jan 18, 2017
@radekmie radekmie added the Type: Feature New features and feature requests label Jan 18, 2017
@radekmie
Copy link
Contributor

Hey @Skulmuk. It's not configurable right now, but it will be very easy to do so (for example it is here in uniforms-unstyled). Would you like to submit a PR for it?

@damienrobson
Copy link
Author

Thanks for the quick reply, @radekmie. I don't have time to raise a PR at the moment - I'm knee-deep in client work. Is this something we'll see included in the near future?

@radekmie
Copy link
Contributor

Yeah, sure - I'll do it tomorrow or even today.

@damienrobson
Copy link
Author

Thanks - greatly appreciated :)

@radekmie radekmie moved this to Closed in Open Source Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New features and feature requests
Projects
Archived in project
Development

No branches or pull requests

2 participants