|
TiledViz
|
![]() |
Public Member Functions | |
| __init__ (self, multiple=False) | |
| __call__ (self, field, **kwargs) | |
| render_option (cls, value, label, selected, **kwargs) | |
Public Attributes | |
| multiple = multiple | |
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)`.
| app.forms.mySelect.render_option | ( | cls, | |
| value, | |||
| label, | |||
| selected, | |||
| ** | kwargs ) |