OpenWGA 7.6 - TMLScript reference

WGA » WGA.TMLPage
Method :

render()
render(design)
render(design, context)
render(design, mediakey)
render(design, mediakey, context)
render(design, mediakey, context, options)

render(config)

On object WGA.TMLPage
Usage Render the current TML page.
Description This method is only useful in TML Renderer TMLScript modules.
Parameters

design (Design object - optional)

A Design object pointing to a TML module to be used to render this page. Ig omitted or null the current TML module will be rendered (same as renderDefault()).

mediakey (String)

The media key to be used. Current media key is the default.

context (TMLContext object)

An alternate TML context to be used.

options (Map or JavaScript Object)

A map of TML Options to be set.

config (Map or JavaScript Object)

A JavaScript object or Java Map containing all or some the above parameters as keys:

  • design
  • medium
  • context
  • options
Examples

WGA.TMLPage.render({

  options: {

my_option: "openwga"

  }

});

Renders the current TML module and set a TML option "my_option" to value "openwga".