Toloka documentation

field.date

A component for entering the date and time in the desired format and range.

You can set a list of dates that a Toloker can't select.

Component properties

Name

Type

Description

type*

"field.date"

Set component type

data*

writable

Data with values that will be processed or changed.

label

string

Label above the component.

blockList

array

List of dates that a Toloker can't select.

blockList[]

string

Date that a Toloker cannot select.

format*

string

Format of the date entered by a Toloker:

  • date-time — date and time.
  • date — date only.

hint

string

Hint text.

max

string

The latest date and time in the YYYY-MM-DD hh:mm format that a Toloker can select. Where:

  • YYYY is the year.
  • MM is the month.
  • DD is the day.
  • hh is the time in hours.
  • mm is the time in minutes.

min

string

The earliest date and time in the YYYY-MM-DD hh:mm format that a Toloker can select. Where:

  • YYYY is the year.
  • MM is the month.
  • DD is the day.
  • hh is the time in hours.
  • mm is the time in minutes.

placeholder

string

A semi-transparent label that is shown in the box when it is empty.

validation

condition

Validation based on condition.