Study/Ext JS

Ext.EventManager API Documentation

굥쓰 2011. 3. 19. 21:01

1. Ext.EventManager

Registers event handlers that want to receive a normalized EventObject instead of the standard browser event and provides several useful events directly. See Ext.EventObject for more details on normalized event objects.

This class is a singleton and cannot be created directly.

1) onDocumentReady
 /**
         * Adds a listener to be notified when the document is ready (before onload and before images are loaded). Can be
         * accessed shorthanded as Ext.onReady().
         * @param {Function} fn The method the event invokes.
         * @param {Object} scope (optional) The scope (
this reference) in which the handler function executes. Defaults to the browser window.
         * @param {boolean} options (optional) Options object as passed to {@link Ext.Element#addListener}. It is recommended that the options
         *
{single: true} be used so that the handler is removed on first invocation.
*/

onDocumentReadyFunction fn[Object scope][boolean options] ) : void
Adds a listener to be notified when the document is ready (before onload and before images are loaded).
사용 예>

Ext.EventManager.onDocumentReady(BasicInfo_Main.init, BasicInfo_Main, true);