| inline_date | R Documentation |
A date input with a calendar pop-up similar to shiny::dateInput() that
can be included in an inline() wrapper.
inline_date(
id,
value = NULL,
min = NULL,
max = NULL,
placeholder = "Enter date",
meaning = NULL,
format = "yyyy-mm-dd",
startview = "month",
weekstart = 0,
language = "en",
autoclose = TRUE,
datesdisabled = NULL,
daysofweekdisabled = NULL
)
id |
The |
value |
The initially selected date. Either a Date object; a
character string in |
min, max |
The minimum and maximum allowed date. Either a Date object,
a character string in |
placeholder |
The character string or HTML element that will appear in the textbox when it is empty, as a prompt. |
meaning |
A descriptive label, for people using assistive technology such as screen readers. |
format |
The format of the date to display in the browser; defaults to
"yyyy-mm-dd". Note that this is only for display purposes. Changing the
display format does not allow you to specify |
startview |
The view shown when the textbox is first clicked. Can be
|
weekstart |
Which day is the start of the week; an integer from 0 (Sunday) to 6 (Saturday). |
language |
The language used for month and day names, with |
autoclose |
Whether to close the calendar once a date has been selected. |
datesdisabled |
Dates that should be disabled (a character or Date
vector). Strings should be in the |
daysofweekdisabled |
Days of the week that should be disabled; an integer vector in which 0 is Sunday, and 6 is Saturday. |
An inline widget to be included in an inline() wrapper.
shiny::dateInput for how the date input works with your Shiny server.
ui <- bslib::page_fixed(
shiny::h1("Select a date"),
inline("Run simulation starting on ",
inline_date("start_date", NULL, meaning = "Simulation start date",
format = "dd/mm/yyyy", daysofweekdisabled = c(0, 6)),
" (weekdays only)."
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.