Class Index | File Index

Classes


Class Alfresco.util.YUILoaderHelper

Wrapper for helping components specify their YUI components.
Defined in: alfresco.js
Field Summary
Field Attributes Field Name and Description
<inner>  
Array to store callbacks from all component registrants
<inner>  
Flag to indicate whether the initial YUILoader has completed
<inner>  
The YUILoader single instance which will load all the dependencies
Method Summary
Method Attributes Method Name and Description
<static>  
Alfresco.util.YUILoaderHelper.loadComponents(p_pageLoad)
Called by template once all component dependencies have been registered. Should be just before the closing tag.
<static>  
Alfresco.util.YUILoaderHelper.onLoaderComplete()
Callback from YUILoader once all required YUI componentshave been loaded by the browser.
<static>  
Alfresco.util.YUILoaderHelper.require(p_aComponents, p_oCallback, p_oScope)
Main entrypoint for components wishing to load a YUI component
Field Detail
<inner> {Array} callbacks
Array to store callbacks from all component registrants

<inner> {boolean} initialLoaderComplete
Flag to indicate whether the initial YUILoader has completed

<inner> {YAHOO.util.YUILoader} yuiLoader
The YUILoader single instance which will load all the dependencies
Method Detail
<static> Alfresco.util.YUILoaderHelper.loadComponents(p_pageLoad)
Called by template once all component dependencies have been registered. Should be just before the </body> closing tag.
Parameters:
{Boolean} p_pageLoad
Whether the function is being called from the page footer, or elsewhere. Only the footer is allowed to use "true" here.

<static> Alfresco.util.YUILoaderHelper.onLoaderComplete()
Callback from YUILoader once all required YUI componentshave been loaded by the browser.

<static> Alfresco.util.YUILoaderHelper.require(p_aComponents, p_oCallback, p_oScope)
Main entrypoint for components wishing to load a YUI component
Parameters:
{Array} p_aComponents
List of required YUI components. See YUILoader documentation for valid names
{function} p_oCallback
Callback function invoked when all required YUI components have been loaded
{object} p_oScope
Scope for callback function

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Feb 16 2012 12:24:28 GMT-0000 (GMT)