XUL:colorpicker
From MDC
« XUL Reference home [ Examples | Attributes | Properties | Methods | Related ]
A palette of colors from which a user may select by clicking on one of the grid cells.
[edit] Examples
<colorpicker type="button"/>
[edit] Attributes
|
Inherited from XUL element |
- disabled
- Type: boolean
- Indicates whether the element is disabled or not. If this element is set to
truethe element is disabled. Disabled elements are usually drawn with grayed-out text. If the element is disabled, it does not respond to user actions, it cannot be focused, and thecommandevent will not fire.
- 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
onchangeattribute is called when the value of the element is changed.
- preference
- Type: element id
- Connects the element to a corresponding preference. This attribute only has any effect when used inside a prefwindow. The value of the preference will be updated to match the value property of the element.
- tabindex
- Type: integer
- The tab order of the element. The tab order is the order in which the focus is moved when the user presses the "tab" key. Elements with a higher
tabindexare later in the tab sequence.
- 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.
[edit] Properties
|
Inherited from XUL element Inherited from DOM element |
- accessibleType
- Type: integer
- A value indicating the type of accessibility object for the element.
- 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.
- open
- Type: boolean
- Returns
trueif the popup for a button-type colorpicker is open. Set this property totrueto open the popup orfalseto close the popup.
[edit] Methods
|
Inherited from XUL element Inherited from DOM element |
[edit] Related
- Interfaces
- nsIDOMXULControlElement
