ColorInput
This class represents a color input widget for HTML forms, specifically designed for selecting colors using a visual interface. It inherits from the base input class and utilizes a dedicated template for rendering the color-specific input type.
Attributes
| Attribute | Type | Description |
|---|---|---|
| input_type | string = color | Specifies the HTML input type attribute used when rendering the widget, which defaults to 'color' to trigger the browser's native color picker. |
| template_name | string = django/forms/widgets/color.html | The file path to the Django HTML template used to render the color input widget. |
Constructor
Signature
def ColorInput() - > null