joliclic

home

kh-colorbox

« Index [ Examples | Attributes | Properties ]

A very simple element, similar to a xul:box, with a "color" attribute/property wich set the background color of the element.

Attributes
color, percentwidth
Properties
color

Examples

example screenshot
<kh-colorbox width="20" height="20" color="#ff0000"/>
example screenshot
<kh-colorbox width="100" height="100" color="#0099ff">
  <label value="a label"/>
</kh-colorbox>

live examples:


Attributes

color

type: string

The background color of the element. Any valid CSS 3 color can be used (#rgb, #rrggbb, rgb(r, g, b), name...)

percentwidth

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.

Properties

color

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