Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 14th, 2012  |  syntax: None  |  size: 1.07 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Ext4 Component Show
  2. Ext.define('NS.controller.ImplementationStatuses', {
  3.     extend: 'Ext.app.Controller',
  4.     stores: ['ImplementationStatuses'],
  5.     models: ['ImplementationStatus'],
  6.     views: ['ImplementationStatus.Legend'],
  7.     init: function() {
  8.         var view = Ext.widget('statusLegend');
  9.     }
  10. });
  11.  
  12. Ext.define('NS.view.ImplementationStatus.Legend', {
  13.     extend: 'Ext.window.Window',
  14.     alias : 'widget.statusLegend',
  15.     views: ['ImplementationStatus.List'],
  16.     initComponent: function() {
  17.         console.log("Initializing NS.view.ImplementationStatus.Legend");
  18.  
  19.         // This creates the list of statuses
  20.         var list = Ext.create('NS.view.ImplementationStatus.List', {});
  21.         list.show();
  22.  
  23.         // Define the list of items
  24.         this.items = [list];
  25.     }
  26. });
  27.  
  28. Ext.define('NS.view.ImplementationStatus.List', {
  29.     extend: 'Ext.panel.Panel',
  30.     alias : 'widget.statusList',
  31.     initComponent: function() {
  32.         console.log("Initializing NS.view.ImplementationStatus.List");
  33.     }
  34. });
  35.        
  36. Ext.window.Window.prototype.initComponent.apply(this, arguments);