TimeInput
This class represents a widget for inputting time data in a web form. It inherits from a base date-time input class and utilizes a specific template and format configuration for rendering time-related HTML input elements.
Attributes
| Attribute | Type | Description |
|---|---|---|
| format_key | string = "TIME_INPUT_FORMATS" | The key used to look up the time input formats in the localization settings. |
| template_name | string = "django/forms/widgets/time.html" | The path to the HTML template used to render the time input widget. |
Constructor
Signature
def TimeInput() - > null
Signature
def TimeInput(
attrs: dict = null,
format: string = null
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| attrs | dict = null | A dictionary containing HTML attributes to be rendered on the input element. |
| format | string = null | The specific time format string used to render the value in the HTML input field. |