class documentation

class ThreeWayToggleWidget(forms.RadioSelect):

View In Hierarchy

Widget that renders the three-way toggle button and allows to set the attributes of the individual inputs (radio buttons) as option_attrs as well as the attributes of the container as attrs.

Method __init__ Store arguments and option attributes for later use.
Method create_option Pass the option attributes to the actual options
Method get_context Pass label and tooltip to the context variable
Class Variable option_template_name Undocumented
Class Variable template_name Undocumented
Instance Variable label Undocumented
Instance Variable option_attrs Undocumented
Instance Variable tooltip Undocumented
def __init__(self, attrs=None, choices=(), option_attrs=None, label=None, tooltip=None):

Store arguments and option attributes for later use.

def create_option(self, name, value, label, selected, index, subindex=None, attrs=None):

Pass the option attributes to the actual options

def get_context(self, name, value, attrs):

Pass label and tooltip to the context variable

option_template_name: str =

Undocumented

template_name: str =

Undocumented

label =

Undocumented

option_attrs =

Undocumented

tooltip =

Undocumented