Skip to main content

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

AttributeTypeDescription
attrsdict = {"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

NameTypeDescription
attrsdict = NoneA dictionary of HTML attributes to be added to the widget.

Signature

def AdminTextInputWidget(
attrs: dict = None
) - > null

Parameters

NameTypeDescription
attrsdict = NoneA dictionary of HTML attributes to be added to the rendered input element.