Chameleon XML Deck/Widget Format Reference

This format is used both by the deck xml definition files as well as the format delivered to the client applications.

Widget Index

Events

Actions

Event Preloads

Chameleon supports Event Preloads that allows you to attach a event to a widget but instead of the event being executed on the server enviroment, it is executed on the client side. The preload events are kept to a minimum as they required additional specific code on the client side. Typical example of preload events are closeForm and uploadData.

Typical example of a button with a preload event attached:

<button id="SaveButton" width="100px" caption="Save" eventpreload="onclick:uploadData"/>


WINDOW

Window is form container for widgets. It is also referred to as the deck. It can be used as the top most widget representing a form or as a sub-widget inside tab widgets and utilised to create subforms.

PROPERTIES

width

Width of text box sufficed with % or px.

width

Height of widget sufficed with % or px.

Events: onclick, onlostfocus, ongotfocus, onload, onunload

Actions: open,close

Event Preload: n/a

Example:

<window id="crmlist_window"  width="100%" height="100%">


TEXT

Standard text box with built in optional label widget.

PROPERTIES

width

Width of text box sufficed with % or px.

height

Height of widget sufficed with % or px.

align

Alignment of widget within parent widget. Valid alignments are left, right, center

caption

Caption text prefixed to the textbox.

caption_width

Width of textbox prefix caption.

caption_align

Caption alignment within the parent widget

rows

Number of rows in the text box.

fieldvalue

Widget text value. Can be populated from code or directly in xml deck.

Events: onclick, onchange, onlostfocus, ongotfocus

Actions: n/a

Event Preload: onchange:uploaddata, onlostfocus:uploaddata

Example:

 <text width="10%" height="5%" caption="First Name:" caption_width="200px" fieldvalue="John"/>


LABEL

Standard label widget with built in optional label widget. Displays read-only text. The widget can support dual labels using the caption property.

PROPERTIES

width

Width of text box sufficed with % or px.

height

Height of widget sufficed with % or px.

align

Alignment of widget within parent widget. Valid alignments are left, right, center

caption

Caption text prefixed to the textbox.

caption_width

Width of textbox prefix caption.

caption_align

Caption alignment within the parent widget


VBOX

Vertical Box widget. Ensures vertical alignment of all controls within the widget.


HBOX

Horizontal Box widget. Ensures horizonta alignment of all controls within the widget.


Chameleon XML (last edited 2008-07-22 00:09:07 by 202-14-148-252)