joliclic
A very simple element, similar to a xul:box
, with a "color
" attribute/property wich set the background color of the element.
<kh-colorbox width="20" height="20" color="#ff0000"/>
<kh-colorbox width="100" height="100" color="#0099ff"> <label value="a label"/> </kh-colorbox>
live examples:
type: string
The background color of the element. Any valid CSS 3 color can be used (#rgb, #rrggbb, rgb(r, g, b), name...)
type: integer
This attribute set the css property width
in percentage for this element, using its value (i.e. width: val%
).
Note: if the parent element has the display
css property set as "-moz-box
", this attribute will have no effect! It will be effective with display: block;
, for example.
This is used by the kh-palette binding, type="sample", to display the correct number of columns.
type: string
Get and set the color
attribute. Any valid CSS 3 color can be used (#rgb, #rrggbb, rgb(r, g, b), name...)
Khromaxul - version: 0.3alpha - 2009-07-30