Sys.Application.addComponent Method
Registers a component with the application and initializes it if the component is not already initialized. This member is static and can be invoked without creating an instance of the class.
Sys.Application.addComponent(component);
Use the addComponent function to register a component with the application and to initialize it if the component is not already initialized.
Registering a component with the application also enables you to get a reference to the component or to verify that it exists. By using the Sys.Application.findComponent method of the Sys.Application class or the $find shortcut method, you can search for registered components in the application or in any subcomponent hierarchy.
Show: