Centrallix - It's Different than what you Think
Home   |   Technology   |   Screen Shots   |   Download   |   Documentation   |   History   |   For Developers

Search...


Search For:

Index...


Centrallix Documentation
1. Getting Started
2. Applications Overview
3. Application Components
4. Reports Overview
5. Report Components
6. SQL Language
7. Process Modeling
8. Application Modeling
9. Role-Based Security
10. Business Logic Modeling
11. Other Objects
12. External API's
13. Internal API's

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:

PropertyTypeDescription


Child Properties:

(of any child widgets)

PropertyTypeDescription
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...


Your Name:
Comment:


(c) 2001-2020 LightSys Technology Services, Inc. All trademarks are property of their respective owners.

Project Hosting Provided By:
Hosted by Sourceforge