bpmext.ui.View
Contains view specific helper functions
Methods:

getParent(literal) Returns: {bpmext.ui.View}
Retrieve parent view, or undefined if no parent exists
Example

isSubscribingToEvent(eventName) Returns: {boolean}
Tests if a view subscribes to an event, returns true if addEventSubscription() was called previously with the given <eventName>
Example

getIndex() Returns: {number}
Retrieve the index of this view (assuming it is in a repeating container). Note that this is not necessarily the index of the item in the data that is backing the repeating view. In fact, using this method on two different views from the same repeating entry could give different values.
Examples

getAncestor(name, literal) Returns: {bpmext.ui.View}
Retrieve ancestor view
Example

getChild(name, index) Returns: {bpmext.ui.View}
Retrieve immediate child control
Example

invoke(functionName, args) Returns: {ANY}
Invoke a function on the view or its ancestor chain
Example

getOption(optionName, defVal) Returns: {ANY}
Retrieves the configuration option value - or the default value if the option is not set
Example

removeEventSubscription(eventName)
Unsubscribes from notifications from the named event.
Example

getAbsoluteName(path) Returns: {string}
Retrieve the fully-qualified path to the view (starting for the top of the view tree)
Example

getSibling(name) Returns: {bpmext.ui.View}
Retrieve sibling view
Example

addEventSubscription(eventName, callbackFunction)
Registers a callback function with an event name. When the event is broadcast with publishEvent, the callback function will be called.
Example

publishEvent(eventName, payload)
Publishes the named event. Triggers the execution of the callback functions for each respective subscriber to the event.
Example

get(path, index) Returns: {bpmext.ui.View}
Retrieve child view
Example

getCount(path) Returns: {number}
Retrieve the number of child views for a given path (without using the [index] notation)
Example