Class: RuntimeView

RuntimeView

Class for managing view components such as layout, template, message etc.


new RuntimeView(the, field)

Runtime implementation of a view as applied to a field.

This provides accessors into the nested behaviors of views and also takes into account field-level attributes
of the currently rendering dom element.

Parameters:
Name Type Description
the String

view id

field Object

the field control

Source:

Methods


<private> _getConfigVal(configVal, configId)

Internal method for getting configuration.

Parameters:
Name Type Description
configVal Any

configuration value.

configId String

configuration id.

Source:
Returns:

configuration mapping to the given id

Type
Any

getGlobalTemplateDescriptor()

Gets the global layout template.

Source:
Returns:

Global layout template setting of the view.

Type
Object | String

getLayout()

Gets layout template and bindings.

Source:
Returns:

Layout template and bindings setting of the view.

Type
Object

getMessage(messageId, locale)

Gets message for the given id

Parameters:
Name Type Description
messageId String

Message id

locale String

locale

Source:
Returns:

Message mapped to the given id.

Type
String

getTemplateDescriptor(templateId, field)

Hands back the compiled template id for a given template.

Parameters:
Name Type Description
templateId
field

(optional)

Source:

getViewParam(configId)

Retrieves view parameter based on configuration Id or Id array.

Parameters:
Name Type Description
configId String | Array

Configuration id or array.

Source:
Returns:

View parameter mapped to configuration Id or Id array.

Type
Any

getWizard()

Gets view wizard settings.

Source:
Returns:

View wizard settings.

Type
Object

setView(the)

Sets the view that this runtime view adapters should consult during render.

Parameters:
Name Type Description
the String

view id

Source: