Package s3 :: Module s3widgets :: Class S3SelectWidget
[frames] | no frames]

Class S3SelectWidget

source code

??-312 --+
         |
        S3SelectWidget


Standard OptionsWidget, but using the jQuery UI SelectMenu:
    http://jqueryui.com/selectmenu/

Useful for showing Icons against the Options.

Instance Methods
 
__init__(self, icons=False)
Constructor
source code
 
__call__(self, field, value, **attr) source code
 
widget(self, field, value, **attributes)
Generates a SELECT tag, including OPTIONs (only 1 option allowed) see also: `FormWidget.widget`
source code
Method Details

__init__(self, icons=False)
(Constructor)

source code 

Constructor

Parameters:
  • icons - show icons next to options, can be:
    • False (don't show icons)
    • function (function to call add Icon URLs, height and width to the options)

__call__(self, field, value, **attr)
(Call operator)

source code 

widget(self, field, value, **attributes)

source code 

Generates a SELECT tag, including OPTIONs (only 1 option allowed) see also: `FormWidget.widget`