Package web2py :: Package gluon :: Module sqlhtml :: Class OptionsWidget
[hide private]
[frames] | no frames]

Class OptionsWidget

source code

object --+    
         |    
FormWidget --+
             |
            OptionsWidget
Known Subclasses:
CheckboxesWidget, MultipleOptionsWidget, RadioWidget

Instance Methods [hide private]

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
 
has_options(field)
checks if the field has selectable options
source code
 
widget(field, value, **attributes)
generates a SELECT tag, including OPTIONs (only 1 option allowed)
source code

Inherited from FormWidget (private): _attributes

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

has_options(field)
Static Method

source code 

checks if the field has selectable options

:param field: the field needing checking :returns: True if the field has options

widget(field, value, **attributes)
Static Method

source code 

generates a SELECT tag, including OPTIONs (only 1 option allowed)

see also: :meth:`FormWidget.widget`
Overrides: FormWidget.widget