Constructor
new ComponentLoadHandler()
Methods
initialize(components)
Initializes and sets up listeners for load events. When all components are loaded, triggers App.Constants.Events.LOAD_COMPLETE event. Component that are passed to it should have at least 2 methods, isLoaded() & onLoadComplete(callback)
Parameters:
Name | Type | Description |
---|---|---|
components |
array |
isComponentLoaded()
Returns true if the page is loaded, false otherwise. Note: Widget failures do not classify as false
onComponentLoadComplete(callback)
Register callback that will be invoked once page is loaded.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | to be invoked when page is loaded |