Colorpicker
An element that the user may use to select a color from. Mozilla renders this as a grid of colors. The user may select a color by clicking on one of the grid cells.
Properties and Methods:
color |
Attributes:
Inherited from XUL Element:
align
allowevents
allownegativeassertions
class
coalesceduplicatearcs
collapsed
container
containment
context
contextmenu
datasources
debug
dir
empty
equalsize
flags
flex
height
hidden
id
insertafter
insertbefore
left
maxheight
maxwidth
menu
minheight
minwidth
mousethrough
observes
ordinal
orient
pack
persist
popup
position
ref
removeelement
sortDirection
sortResource
sortResource2
statustext
style
template
tooltip
tooltiptext
top
uri
wait-cursor
width
color
Type: color string
The currently selected color. This is modified when the user selects a color. You can assign a string of the form #RRGGBB to this property to change the selected color.
onchange
Type: script code
The code in the onchange attribute is called when a color is selected.
type
Type: string
If this attribute is not present, the colorpicker is displayed inside the window. If this is set to the text 'button', the colorpicker is displayed as a button. When the user clicks the button, a popup appears for the user to select a color.
Properties and Methods:
Inherited from XUL Element:
Inherited from Element: