cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages
src.wi.utils.widgets.SelectWithDisabled Class Reference

Subclass of Django's select widget that allows disabling options. More...

Inherits Select.

Public Member Functions

def render_option

Detailed Description

Subclass of Django's select widget that allows disabling options.

To disable an option, pass a dict instead of a string for its label, of the form:

{'label': 'option label', 'disabled': True}

Definition at line 45 of file widgets.py.

Member Function Documentation

def src.wi.utils.widgets.SelectWithDisabled.render_option (   self,
  selected_choices,
  option_value,
  option_label 
)

Definition at line 49 of file widgets.py.


The documentation for this class was generated from the following file: