-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added civilian time option for timeInput function #20
Conversation
Thanks for the pull request! It's quite a substantive change, so I need some time to review it. I will get back to you ;) |
Question: does the current time button in the example app work for you (it appears from the screenshots that it does)? For me, that button does update the inputs, but the text on the right doesn't... |
The text was updating for me... but now it is not, and I don't know why 🫤. Any ideas? |
The issue was due to including $(el).on("change.timeInputBinding", "input", function(e) {
correctInputValue(e.target);
callback();
}); changed to: $(el).on("change.timeInputBinding", function(e) {
correctInputValue(e.target);
callback();
}); |
@burgerga you probably have noticed that changing the AM/PM value in the UI element results in a blank value shown instead of "AM" or "PM" (see attached). It appears to be an issue with I should note that |
@burgerga I figured out the issue: |
@burgerga I just wanted to check in on this PR. Do you have any concerns prior to merging? |
- Remove documentation for params already documented in shiny::textInput - Fix line order for minute.steps documentation - Add titles to utils documentation
Hi @nick-youngblut, sorry for the late reply, hectic period :/ |
By the way, I want to credit this significant contribution, do you object to being listed as package author (see |
@burgerga thanks for the update! I'd be happy to be listed as an author. Yep, that's my ORCID. Thanks! |
- It applies to the whole input group - Includes debug shiny app to test behavior in bslib
Hi @nick-youngblut, can you have a look? |
Looks great! Thanks again for adding me as an author. |
I've added an option to use civilian (non-military) time (#12). Feel free to change the parameter name to
twelve.hour
or another name. I don't have much experience with editing the javascript section of shiny widgets, but it appears to work correctly (see attached).I added a
width
parameter (#19).I've also added documentation for the utility functions and also examples for using the civilian time feature.