Advertisement
Guest User

testMenu

a guest
Aug 27th, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sx.ui.testMenu = Ext.extend(
  2. Ext.panel.Panel, {
  3.     constructor: function (config) {
  4.         if (config == null) {
  5.             config = {}
  6.         }
  7.         config.title = "Test Menu";
  8.         config.layout = {
  9.             type: "border"
  10.             //pack: "start",
  11.             //align: "stretch",
  12.             //enableSplitters: true
  13.         };
  14.         config.border = false;
  15.         config.items = [{
  16.             //xtype: "panel",
  17.             region: "center",
  18.             margin: "4 4 4 4",
  19.             height: 450,
  20.             //flex: 1,
  21.             //border: false,
  22.             //autoSize: true,
  23.             items: Ext.create("sx.ui.MessageInbox", {})
  24.         }, {
  25.             //xtype: "panel",
  26.             region: "south",
  27.             margin: "4 4 4 4",
  28.             height: 450,
  29.             //flex: 1,
  30.             //border: false,
  31.             //autoSize: true,
  32.             items: Ext.create("sx.ui.MessageSent", {})
  33.         }]
  34.         sx.ui.testMenu.superclass.constructor.apply(this, [config])
  35.     }
  36. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement