SplitHiddenDateTimeWidget
A widget that splits datetime input into two < input type="hidden" > inputs.
Attributes
| Attribute | Type | Description |
|---|---|---|
| template_name | string = django/forms/widgets/splithiddendatetime.html | The path to the HTML template used to render the hidden date and time input fields. |
Constructor
Signature
def SplitHiddenDateTimeWidget(
attrs: dict = None,
date_format: str = None,
time_format: str = None,
date_attrs: dict = None,
time_attrs: dict = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| attrs | dict = None | A dictionary of HTML attributes to be added to the rendered widget. |
| date_format | str = None | The format in which the date portion should be displayed. |
| time_format | str = None | The format in which the time portion should be displayed. |
| date_attrs | dict = None | Additional HTML attributes for the date widget. |
| time_attrs | dict = None | Additional HTML attributes for the time widget. |
Signature
def SplitHiddenDateTimeWidget(
attrs: dict = None,
date_format: str = None,
time_format: str = None,
date_attrs: dict = None,
time_attrs: dict = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| attrs | dict = None | A dictionary of HTML attributes to be applied to the rendered widget elements |
| date_format | str = None | The format string used to render the date portion of the datetime value |
| time_format | str = None | The format string used to render the time portion of the datetime value |
| date_attrs | dict = None | Specific HTML attributes to apply only to the date input widget |
| time_attrs | dict = None | Specific HTML attributes to apply only to the time input widget |