Example code for registering ext JS plugins in the web UI framework

The following example code shows how to register a plugin. This code adds a plugin that sets the collapsible property to true for all components that have the xtype panel.

var s = {
          	id: 'first',
	          init: function(comp){
                   comp.collapsible = true;
           }
	   };
	   sc.plat.PluginRegistry.registerPlugin(s);
	   sc.plat.PluginRegistry.registerTypePlugin('panel', 'first');

The following example code shows how to unregister the plugin that was registered in the above code.

sc.plat.PluginRegistry.unregisterTypePlugin('panel','panelid');