OpenWGA 7.11 - JavaScript reference

WGA.portlet
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
Description

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.

Parameters

portletKey (String):

The key of the portlet whose load event triggers the function

fn (JavaScript Function):

The function to execute