OpenWGA 7.4 - JavaScript reference

Method :

WGA.portlet.onload.register(portletKey, fn)

On object WGA.portlet
Usage Registers a function to be called when the portlet of the given key is loaded

This is a "onload" style event which fires after a portlet has been (re-)loaded, even if it is reloaded via AJAX. It survives multiple reloads of the portlet.

The function is given the portletkey of the reloaded portlet as parameter, so the same function could be registered for multiple portlets but would be able to distinguish individual portlets by the given parameter.


portletKey (String):

The key of the portlet whose load event triggers the function

fn (JavaScript Function):

The function to execute