class documentation

Undocumented

Method __deepcopy__ Undocumented
Method __init__ Undocumented
Method build_attrs Build an attribute dictionary.
Method format_value Return a value as it should appear when rendered in a template.
Method get_context Undocumented
Method id_for_label Return the HTML ID attribute of this Widget for use by a <label>, given the ID of the field. Return an empty string if no ID is available.
Method render Render the widget as an HTML string.
Method subwidgets Undocumented
Method use_required_attribute Undocumented
Method value_from_datadict Given a dictionary of data and this widget's name, return the value of this widget or None if it's not provided.
Method value_omitted_from_data Undocumented
Class Variable is_localized Undocumented
Class Variable is_required Undocumented
Class Variable needs_multipart_form Undocumented
Class Variable supports_microseconds Undocumented
Class Variable use_fieldset Undocumented
Instance Variable attrs Undocumented
Property is_hidden Undocumented
Method _render Undocumented
def build_attrs(self, base_attrs, extra_attrs=None): (source)

Build an attribute dictionary.

def id_for_label(self, id_): (source)

Return the HTML ID attribute of this Widget for use by a <label>, given the ID of the field. Return an empty string if no ID is available. This hook is necessary because some widgets have multiple HTML elements and, thus, multiple IDs. In that case, this method should return an ID value that corresponds to the first ID in the widget's tags.

def render(self, name, value, attrs=None, renderer=None): (source)

Render the widget as an HTML string.

def subwidgets(self, name, value, attrs=None): (source)

Undocumented

is_localized: bool = (source)

Undocumented

is_required: bool = (source)

Undocumented

def _render(self, template_name, context, renderer=None): (source)

Undocumented