How to set dateRangeType in Calendar.shnynput? #238
stevenjwest
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A very simple issue, I cannot figure out how to set the dateRangeType parameter in the
Calendar.shinyInput()functionIf I set any value, the Calendar is not visible. I have tried setting the
dateRangeTypeto all the Strings I can think of:"week","Week","dateRangeType.Week","DateRangeType.Week"- nothing seems to work. Even if I set the default,"Day", the calendar still fails to render.If I omit the argument, the Calendar renders in my shiny app, and the default selection (day selection) is enabled.
I have explored the fluentUI repo and help pages to no avail : https://github.com/microsoft/fluentui
I did find a commit where example usage of dateRangeType has been added - here : microsoft/fluentui@a9fea90
This reveals the following JS code for dateRangeType representation:
I would therefore assume that
"Week"would work for week-based selection..?Does anyone know how to use this parameter to set the type of date selection?
Thanks! Steve.
Beta Was this translation helpful? Give feedback.
All reactions