Page

Page represents the root rendering control for an IWML document.

Properties

Data[]

Data sources.

Locale: string

An empty value specifies no default locale. If no default locale is specified, a value from System.Config.Locale will be used.

Locale specifies a language and optionally a region as well.

If 2 characters, locale specifies an ISO 639-1 language code such as en, ru, gr.

If 5 characters, locale also specifies a country for regional settings and dialect of language using an ISO 3166-1 alpha-2 country code such as en-US, en-CA, ru-RU, gr-CY.

For custom controls that support language themes or regional settings, this property should be used.

Root[]

The root property contains the list of controls for the page. The root property can contain only one control, and thus the child item is normally another layout control which allows more than one control as children of it.

Scripts[]

Scripts lists custom .js files to be loaded as part of this page. The path must be a fully qualified URL, otherwise it will be considered relative to the path of the parent .iwml file’s path.

Example:

ACORN 1.0 IWML 1.0
Page
  Scripts[]
    Script MyLibrary.js
  ]
  Root[]
    SimpleStack[]
      Text Hello World
    ]
  ]
]

Styles[]

External style sheets.

Title: string

Title of the page. When the page is loaded, the parent HTML document’s title will be set to this value.

Sample