Skip to content

Instantly share code, notes, and snippets.

@jbuda
Created July 30, 2013 12:35
Show Gist options
  • Save jbuda/6112527 to your computer and use it in GitHub Desktop.
Save jbuda/6112527 to your computer and use it in GitHub Desktop.
A simple tab panel with a list component showing method for using a scrollable header and footer
Ext.define 'ListHeaderFooter.view.Main'
extend:'Ext.tab.Panel'
xtype:'main'
requires:[
'Ext.TitleBar'
'Ext.dataview.List'
]
config:
tabBarPosition:'bottom'
layout:'card'
fullscreen:true
items:[
{
title:'Simple List'
iconCls:'home'
items:[
{
xtype:'titlebar'
docked:'top'
title:'Simple List'
}
{
xtype:'list'
store:'itemsStore'
height:'100%'
itemTpl:'{item}'
items:[
{
xtype:'panel'
scrollDock:'top'
docked:'top'
height:60
style:'background-color:#666'
}
{
xtype:'panel'
scrollDock:'bottom'
docked:'bottom'
height:60
style:'background-color:#999'
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment