class documentation

Undocumented

Method __deepcopy__ Undocumented
Method __init__ Undocumented
Method create_option Undocumented
Method format_value Return selected values as a list.
Method get_context Undocumented
Method id_for_label Use an incremented id for each option where the main widget references the zero index.
Method optgroups Return a list of optgroups for this widget.
Method options Yield a flat list of options for this widget.
Method subwidgets Yield all "subwidgets" of this widget. Used to enable iterating options from a BoundField for choice widgets.
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.
Class Variable add_id_index Undocumented
Class Variable allow_multiple_selected Undocumented
Class Variable checked_attribute Undocumented
Class Variable input_type Undocumented
Class Variable option_inherits_attrs Undocumented
Class Variable option_template_name Undocumented
Class Variable template_name Undocumented
Instance Variable choices Undocumented

Inherited from Widget:

Method build_attrs Build an attribute dictionary.
Method render Render the widget as an HTML string.
Method use_required_attribute Undocumented
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 __deepcopy__(self, memo): (source)
def create_option(self, name, value, label, selected, index, subindex=None, attrs=None): (source)

Undocumented

def format_value(self, value): (source)

Return selected values as a list.

def get_context(self, name, value, attrs): (source)
def id_for_label(self, id_, index='0'): (source)

Use an incremented id for each option where the main widget references the zero index.

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

Return a list of optgroups for this widget.

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

Yield a flat list of options for this widget.

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

Yield all "subwidgets" of this widget. Used to enable iterating options from a BoundField for choice widgets.

def value_from_datadict(self, data, files, name): (source)

Given a dictionary of data and this widget's name, return the value of this widget or None if it's not provided.

add_id_index: bool = (source)

Undocumented

checked_attribute: dict[str, bool] = (source)

Undocumented

option_inherits_attrs: bool = (source)

Undocumented

option_template_name = (source)

Undocumented