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 field for entering a date and time.
For more information, see field.date.
Parameters | Type | Description |
---|---|---|
data | Optional[BaseComponent] | A data path. |
format | Optional[Any] | The format of the field:
|
block_list | Optional[Union[BaseComponent, List[Any]]] | A list of dates that a Toloker can't select. |
max | Optional[Any] | The latest date and time in the |
min | Optional[Any] | The earliest date and time in the |
placeholder | Optional[Any] | A text that is shown when no date is entered. |
hint | Optional[Any] | A hint. |
label | Optional[Any] | A label above the component. |
validation | Optional[BaseComponent] | Validation rules. |
Last updated: August 28, 2023