DateFieldV1

toloka.client.project.template_builder.fields.DateFieldV1 | Source code

DateFieldV1(
self,
data: Optional[BaseComponent] = None,
format: Optional[Any] = None,
*,
block_list: Optional[Union[BaseComponent, List[Any]]] = None,
max: Optional[Any] = None,
min: Optional[Any] = None,
placeholder: Optional[Any] = None,
hint: Optional[Any] = None,
label: Optional[Any] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

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

You can set a list of dates that the Toloker cannot select.

Parameters Description

ParametersTypeDescription
dataOptional[BaseComponent]

Data with values that will be processed or changed.

formatOptional[Any]

Format of the date entered by the Toloker:

  • date-time — date and time.
  • date — date only.
block_listOptional[Union[BaseComponent, List[Any]]]

List of dates that the Toloker cannot select.

  • block_list[]: Date that the Toloker cannot select.
maxOptional[Any]

The latest date and time in the YYYY-MM-DD hh:mm format that the 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.
minOptional[Any]

The earliest date and time in the YYYY-MM-DD hh:mm format that the 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.
placeholderOptional[Any]

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

hintOptional[Any]

Hint text.

labelOptional[Any]

Label above the component.

validationOptional[BaseComponent]

Validation based on condition.

Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming