Skip to main content

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

AttributeTypeDescription
format_keystring = "TIME_INPUT_FORMATS"The key used to look up the time input formats in the localization settings.
template_namestring = "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

NameTypeDescription
attrsdict = nullA dictionary containing HTML attributes to be rendered on the input element.
formatstring = nullThe specific time format string used to render the value in the HTML input field.