getPageManager

Definition:

NDLRuntime.getPageManager(element)

 

Description:

Obtain the page manager of the page to which the specified Element belongs.

 

Parameters:

This function has one parameter:

element - Required

The AngularJS element object of the Element (see Notes section below).

Note: This function does not directly use the default ndlParams object but see Notes.

 

Returns:

Object containing the page manager.

 

Code Sample:

var elementObj = ndlParams.event.currentTarget;

return NDLRuntime.getPageManager(elementObj);

 

Notes:

AngularJS element objects are often passed into AngularJS functions such as the link function in a directive constructor, or as members of other objects supplied by the framework, e.g. the currentTarget member of the event object, which is included in the ndlParams object passed to custom functions when generated from the Event Builder, and can be accessed using ndlParams.event.currentTarget.

 

Using as Predefined Action in Event:

n/a