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

Decimal number picker functionality #43

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MisterChips
Copy link

I needed a decimal number picker to choose a temperature setpoint (degrees centigrade to one decimal place). I wanted it to work as another option in AnyPicker as I needed the DateTime, Time picker functions. My code is not pretty, but someone may find it useful.
Additionally

  1. I've added logic to prevent setting a time greater than the max and smaller than the minimum.
  2. I've changed ability to be able to set the start time and end time as the same time. They will be one unit apart. Maybe this should be optioned in settings, rather than hard coded.
    This is my first GitHub interaction. I'm sure I've done something wrong.
    I'm no coder and I have no problem with people using or changing anything I've done. If it's useful, then great.

I needed a decimal number picker to choose a temperature setpoint (degrees centigrade to one decimal place). I wanted it to work as another option in AnyPicker as I needed the DateTime, Time picker functions. My code is not pretty, but someone may find it useful.
Additionally
1. I've added logic to prevent setting a time greater than the max and smaller than the minimum.
2. I've changed ability to be able to set the start time and end time as the same time. They will be one unit apart. Maybe this should be optioned in settings, rather than hard coded.
I'm no coder and I have no problem with people using or changing anything I've done.
@MisterChips MisterChips marked this pull request as draft June 24, 2020 14:06
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.

None yet

1 participant