Skip to main content

BaseAdminTimeWidget

This class provides a specialized time input widget designed for use within an administrative interface. It integrates specific JavaScript resources for time selection shortcuts and applies default CSS classes and size attributes to ensure consistent styling and behavior. The widget inherits from standard time input and context mixins to support formatted time data entry.

Attributes

AttributeTypeDescription
MediaclassInner class defining the JavaScript assets required for the time picker and shortcut functionality in the admin interface.

Constructor

Signature

def BaseAdminTimeWidget(
attrs: dict = None,
format: string = None
) - > null

Parameters

NameTypeDescription
attrsdict = NoneA dictionary containing HTML attributes to be set on the rendered widget.
formatstring = NoneThe format in which the time value will be displayed.

Signature

def BaseAdminTimeWidget(
attrs: dict = None,
format: string = None
) - > null

Parameters

NameTypeDescription
attrsdict = NoneA dictionary of HTML attributes to be added to the rendered input element.
formatstring = NoneThe format string used to determine how the time value is displayed in the input field.