回到目录
Sat, 05/05/2007 - 21:02 — criecke
例子
这个例子设置了一个隐藏域,在表单中传递选中的颜色。











Dijit类型,属性,事件和方法
dijit.ColorPalette
用表格来显示不同的颜色,用户可以自己选择。
| |||
属性
| |||
palette | 7x10 3x4 | 7x10 | 表格的尺寸,用行和列来表示 |
selectedColor | String | N/A | 用HTML的16进制表示选中的演示,例如"ffffff"和,"#ffffff"或者 or color="white"一样表示白色。 |
事件
| |||
onColorSelect | 当一种颜色被点击或者用键盘选中时调用 | ||
OTHERS | Am not sure whether to include onclick, onblur, onmouseover, etc. since they are standard HTML events, though overriden by the ColorPalette implementation. | ||
CSS Classes
I'm not quite sure how to represent these yet. In this case, you set styles on dojoProgressBarColorLayer and set the class of the outer div to dojoProgressBarColor.
|
回到
目录