Skip to main content

Interface: DateTimepicker

Defined in: block-kit/block-elements.ts:112

Description

Allows users to select both a date and a time of day, formatted as a Unix timestamp. On desktop clients, this time picker will take the form of a dropdown list and the date picker will take the form of a dropdown calendar. Both options will have free-text entry for precise choices. On mobile clients, the time picker and date picker will use native UIs.

See

Extends

Properties

action_id?

optional action_id: string;

Defined in: block-kit/extensions.ts:15

@description: An identifier for this action. 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.

Inherited from

Actionable.action_id


confirm?

optional confirm: ConfirmationDialog;

Defined in: block-kit/extensions.ts:25

Description

A Confirm object that defines an optional confirmation dialog after the element is interacted with.

Inherited from

Confirmable.confirm


focus_on_load?

optional focus_on_load: boolean;

Defined in: block-kit/extensions.ts:42

Description

Indicates whether the element will be set to auto focus within the `view` object. Only one element can be set to true. Defaults to false.

Inherited from

Focusable.focus_on_load


initial_date_time?

optional initial_date_time: number;

Defined in: block-kit/block-elements.ts:122

Description

The initial date and time that is selected when the element is loaded, represented as a UNIX timestamp in seconds. This should be in the format of 10 digits, for example 1628633820 represents the date and time August 10th, 2021 at 03:17pm PST.


type

type: "datetimepicker";

Defined in: block-kit/block-elements.ts:116

Description

The type of element. In this case type is always datetimepicker.

Overrides

Actionable.type