Caplin Trader 5.1.0

Interface: module:ct-layout/LayoutTemplate

module:ct-layout/LayoutTemplate

A layout template is a pre-defined prototype of a module:ct-layout/Layout. A user's available layout templates can be accessed by calling module:ct-layout/LayoutService#getTemplates. These layout templates can then be used to generate new layouts by passing them to module:ct-layout/LayoutService#openNew.

Methods

getName() → {String}

Returns the name of the layout template. This is a display name only, and should not be used for identification.

Returns:

The name of the layout template.

Type
String

getProperty(propertyName) → {String}

Returns the value of the layout template's property.

Parameters:
Name Type Description
propertyName String

The name of the property to retrieve.

Returns:
Type
String