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
| Attribute | Type | Description |
|---|---|---|
| input_type | string = search | Specifies the HTML type attribute for the input element, identifying it as a search field. |
| template_name | string = django/forms/widgets/search.html | The 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
| Name | Type | Description |
|---|---|---|
| attrs | dict = null | A dictionary containing HTML attributes to be added to the rendered search input element. |