Skip to content

Instantly share code, notes, and snippets.

@chensoren
Created February 21, 2012 00:51
Show Gist options
  • Save chensoren/1872631 to your computer and use it in GitHub Desktop.
Save chensoren/1872631 to your computer and use it in GitHub Desktop.
Embed Ext.list inside Ext.Panel component
Ext.define('Program', {
extend: 'Ext.Panel',
id: 'program',
xtype: 'programview',
fullscreen: true,
config: {
layout: 'fit',
items: [
{xtype:'titlebar',
docked: 'top',
title: 'Program'
},
{
xtype: 'list',
itemTpl: '{name}',
store: {
fields: ['name'],
data: [
{name: 'Rob'},
{name: 'Ed'},
{name: 'Jacky'},
{name: 'Jamie'},
{name: 'Tommy'},
{name: 'Abe'}
]
}
}
]
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment