View source: R/ui-weekday_switch.R
weekday_switch | R Documentation |
'weekday_switch()' creates a switch using
materialSwitch()
for a given day
of the week. It labels the switch on the right side with the full weekday
name and lowercases the 3-day abbreviation for the 'inputId'. This
is designed to work inside Shiny modules.
weekday_switch( id, day = c("sun", "mon", "tue", "wed", "thu", "fri", "sat"), value = FALSE )
id |
The id of the Shiny module calling this function |
day |
A day of the week, as a 3-letter abbreviation in title case |
value |
TRUE or FALSE. |
A switch control that can be added to a UI definition.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.