datepicker_element: Date picker element

View source: R/elements.R

datepicker_elementR Documentation

Date picker element

Description

An element which lets users easily select a date from a calendar style UI.

Usage

datepicker_element(id, placeholder = NULL, initial_date = NULL, confirm = NULL)

Arguments

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

Details

  • Works with block types: Section, Actions, Input

Value

block element class

See Also

parse_date

Other elements: button_element(), checkbox_element(), image_element(), overflow_menu(), plaintext_element(), radiobuttons_element(), select_menu(), select_type_menu()

Examples

datepicker_element(id = 'datepicker123',initial_date = "1990-04-28", 
placeholder = 'Select a date')

yonicd/slackblocks documentation built on March 2, 2023, 6:53 a.m.