TiledViz
Loading...
Searching...
No Matches
app.forms.mySelect Class Reference
Inheritance diagram for app.forms.mySelect:

Public Member Functions

 __init__ (self, multiple=False)
 __call__ (self, field, **kwargs)
 render_option (cls, value, label, selected, **kwargs)

Public Attributes

 multiple = multiple

Detailed Description

Renders a select field.

If `multiple` is True, then the `size` property should be specified on
rendering to make the field useful.

The field must provide an `iter_choices()` method which the widget will
call on rendering; this method must yield tuples of
`(value, label, selected)`.

Definition at line 19 of file forms.py.

Constructor & Destructor Documentation

◆ __init__()

app.forms.mySelect.__init__ ( self,
multiple = False )

Definition at line 30 of file forms.py.

Member Function Documentation

◆ __call__()

app.forms.mySelect.__call__ ( self,
field,
** kwargs )

Definition at line 33 of file forms.py.

◆ render_option()

app.forms.mySelect.render_option ( cls,
value,
label,
selected,
** kwargs )

Definition at line 83 of file forms.py.

Member Data Documentation

◆ multiple

app.forms.mySelect.multiple = multiple

Definition at line 31 of file forms.py.


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