joliclic

home

Khromaxul Documentation

[ howto | elements | jsmodules | misc. ]

Khromaxul is a collection of XUL widgets to create an advanced color chooser.

Its initial purpose is to create an extension for Komodo, but these XBL elements could easily be reused by any XUL project, extensions, or xulrunner application.

This documentation is part of the downloadable Khromaxul_src archive.


Howto

To use these Khromaxul elements in your XUL document, simply add the stylesheet widget.css situated in the xbl folder of the src archive.

Example:

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="khromaxul/xbl/widget.css" type="text/css"?>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    
    <kh-colorbox color="#ff0f00" height="50"/>

</window>

You will find some live examples for each element in their dedicated page.

Elements

JavaScript Modules

All libraries are encapsulated in the kh namespace.

Miscellaneous

Khromaxul - version: 0.3alpha - 2009-07-30