widget/template
template :: templates are a way to provide default values (and default children) of different widget_class's
Metadata:
type: | widget/template |
visual: | no |
container: | no |
form element: | no |
Overview:
Usage:
a widget/template must be a root widget of a file (which normally is given a .tpl extension)
each child in a widget/template is a "rule". each rule applies to widgets that both 1) have the same 'widget_class' property value (there can be only one widget_class per widget (and "rule")) and 2) match the widget type of the child (eg "widget/imagebutton")
every other property of the "rule" are default values
all children of the "rule" are automatically inserted into the matched widgets
Properties:
Child Properties:
(of any child widgets)
Property | Type | Description |
widget_class |
string |
the value of this property must match another widget before said widget will "inherit" this "rule". |
Actions:
none currently available
Events:
none currently available
Client Properties:
none currently available
Sample Code:
objcanvas_test "widget/template"
{
btnFirst "widget/imagebutton"
{
widget_class="FirstRecord";
width=18;
height=18;
image="/sys/images/ico16aa.gif";
pointimage="/sys/images/ico16ab.gif";
clickimage="/sys/images/ico16ac.gif";
disabledimage="/sys/images/ico16ad.gif";
enabled = runclient(:template_form:recid > 1);
cnFirst "widget/connector" { event="Click"; target=template_form; action="First"; }
}
}
Comments...
(none yet)
Add a Comment...
|