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

Class S3ColorPickerWidget

source code

??-281 --+
         |
        S3ColorPickerWidget

Displays a widget to allow the user to pick a color, and falls back to using JSColor or a regular text input if necessary.

Instance Methods
 
__init__(self, options=None) source code
 
__call__(self, field, value, **attributes) source code
Class Variables
  DEFAULT_OPTIONS = {"showInput": True, "showInitial": True, "pr...
Method Details

__init__(self, options=None)
(Constructor)

source code 
Parameters:
  • options - options for the JavaScript widget

See Also: http://bgrins.github.com/spectrum/

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

source code 

Class Variable Details

DEFAULT_OPTIONS

Value:
{"showInput": True, "showInitial": True, "preferredFormat": "hex", "sh\
owPaletteOnly": True, "togglePaletteOnly": True, "palette":("red", "or\
ange", "yellow", "green", "blue", "white", "black")}