View source: R/block_elements.R
An element which lets users easily select a date from a calendar style UI. To use interactive components like this, you will need to make some changes to prepare your app. Read our guide to enabling interactivity. Works with block types: Section Actions Input
datepicker_element( action_id, placeholder = NULL, initial_date = NULL, confirm = NULL )
An identifier for the action triggered when the checkbox group is changed. You can use this when you receive an interaction payload to identify the source of the action. Should be unique among all other action_ids in the containing block. Maximum length for this field is 255 characters.
A plain_text only
The initial date that is selected when the element is loaded. This should be in the format YYYY-MM-DD.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.