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 option on both the float and int field types #1092

Open
godismyjudge95 opened this issue Dec 4, 2023 · 4 comments
Open

Step option on both the float and int field types #1092

godismyjudge95 opened this issue Dec 4, 2023 · 4 comments

Comments

@godismyjudge95
Copy link

Would be awesome to either have the standard HTML5 step option or maybe a more elegant way with styled buttons.

@jasonvarga
Copy link
Member

jasonvarga commented Dec 4, 2023

The integer fieldtype has it. Would be handy on the float fieldtype though.

@godismyjudge95
Copy link
Author

The integer fieldtype has it. Would be handy on the float fieldtype though.

Am I missing it?

image

@jasonvarga
Copy link
Member

You don't have to enable anything. The up/down buttons are just there.

@godismyjudge95
Copy link
Author

Oh by step option I am referring to an HTML5-like option to enable the buttons and determine the step size. For example, I might have a field that can only have multiples of 10, so I'd only want an int field that can increment with those steps.

The range field already has this, but sometimes I don't need a range and only need the single value of float or int.

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

2 participants