Skip to content

Instantly share code, notes, and snippets.

@mmcc
Created December 27, 2011 21:43
Show Gist options
  • Save mmcc/1525253 to your computer and use it in GitHub Desktop.
Save mmcc/1525253 to your computer and use it in GitHub Desktop.
tabpanel
WhyWait.views.Menu = Ext.extend(Ext.TabPanel, {
title: "menu",
iconCls: "note3",
initComponent: function() {
Ext.apply(this, {
defaults: {
styleHtmlContent: true
},
dockedItems: [{
xtype: "toolbar",
title: "Menu"
}],
items: [{
title: 'Simple',
items: [{
xtype: 'list',
store: WhyWait.ListStore,
itemTpl: '<div class="contact"><strong>{firstName}</strong> {lastName}</div>'
}]
},{
title: 'Food',
scroll: 'vertical',
html: '<h2>food</h2>'
},{
title: 'Other',
scroll: 'vertical',
html: '<h2>other</h2>'
}]
});
WhyWait.views.Menu.superclass.initComponent.apply(this, arguments);
}
});
Ext.reg('menu', WhyWait.views.Menu);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment