The <FML/> widget, or commonly referred to as the "template" or "framework", is the top level (outermost) widget of every markup page. The <FML/> widget wraps one or more other child widgets.
Attributes
Name
Type
Default
Description
Req
layout
string
stack
Default layout of box children.
row
column
col
stack
vertical
horizontal
title
string
In web, the title is used to set the browsers tab bar header
version
string
The template version number
linkable
boolean
Allows user to navigate directly to the page via its url otherwise the home page is displayed. Used to override the SINGLE_PAGE_APPLICATION setting in the config file.
rights
int
If the right's property is defined, the current user must be connected and have rights equal to or greater than this value in order to view the page. If not connected, the LOGIN_PAGE defined in the config file is launched. See authentication for details.
orientation
string
all
The allowable page orientation(s). Applies to mobile devices only. Valid values are "landscape", "portrait" or "all"
Properties
Name
Type
Description
index
int
The position of the page in the stack where "0" is the top level page (active page), page "1" is below page "0", page "2" is below page "1", ...
Events
Name
Description
onstart
Triggers the event string when the template is first opened
onreturn
Triggers the event string when the template is returned back to