Skip to content

Instantly share code, notes, and snippets.

@krusty
Created November 8, 2012 17:14
Show Gist options
  • Save krusty/4040152 to your computer and use it in GitHub Desktop.
Save krusty/4040152 to your computer and use it in GitHub Desktop.
Ext.define("CC.view.Settings", {
extend: 'Ext.Panel',
xtype: 'settingspanel',
requires: [
'Ext.dataview.List'
],
config: {
title: "Settings",
iconCls: "settings",
items: [
{
xtype: 'titlebar',
title: 'Settings'
},
{
xtype: 'list',
id: 'settingsMenu',
fullscreen: true,
itemTpl: '{title}',
data: [
{ title: 'Item 1' },
{ title: 'Item 2' },
{ title: 'Item 3' },
{ title: 'Item 4' }
]
},
{
xtype: 'button',
id: 'logout',
text: 'Log out'
}
]
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment