datepicker_element | R Documentation |
An element which lets users easily select a date from a calendar style UI.
datepicker_element(id, placeholder = NULL, initial_date = NULL, confirm = NULL)
id |
character, an identifier for the action triggered when a menu option is selected. |
placeholder |
character, placeholder text shown on the datepicker. Default: NULL |
initial_date |
Date, The initial date that is selected when the element is loaded. This should be in the strftime format '%Y-%m-%d'. Default: NULL |
confirm |
block_confirm, defines an optional confirmation dialog after the button is clicked. Default: NULL |
Works with block types: Section, Actions, Input
block element class
parse_date
Other elements:
button_element()
,
checkbox_element()
,
image_element()
,
overflow_menu()
,
plaintext_element()
,
radiobuttons_element()
,
select_menu()
,
select_type_menu()
datepicker_element(id = 'datepicker123',initial_date = "1990-04-28", placeholder = 'Select a date')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.