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 user cannot select.
Parameters Description
Parameters | Type | Description |
---|---|---|
data |
Optional[BaseComponent] | Data with values that will be processed or changed. |
format |
Optional[Any] | Format of the date entered by the user:
|
block_list |
Optional[Union[BaseComponent, List[Any]]] | List of dates that the user cannot select.
|
max |
Optional[Any] | The latest date and time in the YYYY-MM-DD hh:mm format that the user can select. Where:
|
min |
Optional[Any] | The earliest date and time in the YYYY-MM-DD hh:mm format that the user can select. Where:
|
placeholder |
Optional[Any] | A semi-transparent label that is shown in the box when it is empty. |
hint |
Optional[Any] | Hint text. |
label |
Optional[Any] | Label above the component. |
validation |
Optional[BaseComponent] | Validation based on condition. |