Skip to main content

SearchInput

This class represents a search input HTML element used within web forms. It specifies the input type as search and utilizes a dedicated template for rendering the widget's structure.

Attributes

AttributeTypeDescription
input_typestring = searchSpecifies the HTML type attribute for the input element, identifying it as a search field.
template_namestring = django/forms/widgets/search.htmlThe file path to the Django HTML template used to render the search input widget.

Constructor

Signature

def SearchInput() - > null

Signature

def SearchInput(
attrs: dict = null
) - > null

Parameters

NameTypeDescription
attrsdict = nullA dictionary containing HTML attributes to be added to the rendered search input element.