]> git.proxmox.com Git - sencha-touch.git/blob - src/examples/geocongress/app/view/legislator/TabPanel.js
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / examples / geocongress / app / view / legislator / TabPanel.js
1 /**
2 * The container for a Legislator's Info, Sponsored Bills and Votes
3 */
4 Ext.define('GeoCon.view.legislator.TabPanel', {
5 extend: 'Ext.tab.Panel',
6
7 requires: [
8 'GeoCon.view.legislator.Info',
9 'GeoCon.view.bill.List',
10 'GeoCon.view.vote.List'
11 ],
12
13 id: 'legislatorTabPanel',
14
15 config: {
16 tabBar: {
17 layout: {
18 pack: 'center'
19 }
20 },
21 items: [
22 {
23 id: 'legislatorToolbar',
24 docked: 'top',
25 xtype: 'toolbar',
26 items: [
27 {
28 xtype: 'button',
29 text: 'Back',
30 ui: 'back',
31 id: 'legislatorBackButton'
32 }
33 ]
34 },
35 { title: 'Bio', xclass: 'GeoCon.view.legislator.Info' },
36 { title: 'Bills', xclass: 'GeoCon.view.bill.List' },
37 { title: 'Votes', xclass: 'GeoCon.view.vote.List' }
38 ]
39 }
40 });