Skip to main content

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

AttributeTypeDescription
input_typestring = colorSpecifies the HTML input type attribute used when rendering the widget, which defaults to 'color' to trigger the browser's native color picker.
template_namestring = django/forms/widgets/color.htmlThe file path to the Django HTML template used to render the color input widget.

Constructor

Signature

def ColorInput() - > null