AdminTextInputWidget
This class provides a customized text input widget specifically designed for use within an administrative interface. It extends the standard text input functionality by automatically applying a specific CSS class to ensure consistent styling with other administrative form fields.
Attributes
| Attribute | Type | Description |
|---|---|---|
| attrs | dict = {"class": "vTextField"} | A dictionary of HTML attributes to be applied to the rendered text input, which defaults to including the 'vTextField' CSS class for Django admin styling. |
Constructor
Signature
def AdminTextInputWidget(
attrs: dict = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| attrs | dict = None | A dictionary of HTML attributes to be added to the widget. |
Signature
def AdminTextInputWidget(
attrs: dict = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| attrs | dict = None | A dictionary of HTML attributes to be added to the rendered input element. |