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
| Attribute | Type | Description |
|---|---|---|
| Media | class | Inner 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
| Name | Type | Description |
|---|---|---|
| attrs | dict = None | A dictionary containing HTML attributes to be set on the rendered widget. |
| format | string = None | The format in which the time value will be displayed. |
Signature
def BaseAdminTimeWidget(
attrs: dict = None,
format: string = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| attrs | dict = None | A dictionary of HTML attributes to be added to the rendered input element. |
| format | string = None | The format string used to determine how the time value is displayed in the input field. |