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.
利用者が色を選択できるようにするための要素。 Mozilla では色を持つセルを格子状に並べて表示される。利用者はセルのうち一つをクリックすることにより、色を選択できる。
プロパティとメソッド:
color |
属性:
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.
型 : 色を表す文字列
現在選択中の色。ユーザが色を選択すると変更される。#RRGGBB 形式の文字列をこのプロパティに割り当てると、選択した色を変更することができる。
onchange
Type: script code
The code in the onchange attribute is called when a color is selected.
型 : スクリプトコード
onchange 属性のコードは、色が選択されたときに呼ばれる。
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.
型 : 文字列
この属性がないときには、colorpicker はウィンドウ内に表示される。この属性がテキスト 'button' に設定されていると、colorpicker はボタンとして表示される。ユーザがボタンをクリックすると、ポップアップが現れてユーザは色を選択できる。
プロパティとメソッド:
color
Type: color string
Gets and sets the value of the color attribute.
型 : 色を表す文字列
color 属性の値を取得・設定する。
XUL Element から継承:
Element から継承: