]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * Demonstrates a tab panel with icons in the tab buttons.\r | |
3 | */\r | |
4 | Ext.define('KitchenSink.view.tab.IconTabs', {\r | |
5 | extend: 'Ext.container.Container',\r | |
6 | xtype: 'icon-tabs',\r | |
7 | controller: 'tab-view',\r | |
8 | width: 400,\r | |
9 | \r | |
10 | //<example>\r | |
11 | requires: [\r | |
12 | 'KitchenSink.view.tab.TabController'\r | |
13 | ],\r | |
14 | otherContent: [{\r | |
15 | type: 'ViewController',\r | |
16 | path: 'classic/samples/view/tab/TabController.js'\r | |
17 | }],\r | |
18 | exampleTitle: 'Icon Tabs',\r | |
19 | //</example>\r | |
20 | \r | |
21 | defaults: {\r | |
22 | xtype: 'tabpanel',\r | |
23 | width: 400,\r | |
24 | height: 200,\r | |
25 | defaults: {\r | |
26 | bodyPadding: 10,\r | |
27 | scrollable: true\r | |
28 | }\r | |
29 | },\r | |
30 | \r | |
31 | items: [{\r | |
32 | margin: '0 0 20 0',\r | |
33 | items: [{\r | |
34 | glyph: 72,\r | |
35 | html: KitchenSink.DummyText.longText\r | |
36 | }, {\r | |
37 | glyph: 99,\r | |
38 | html: KitchenSink.DummyText.extraLongText\r | |
39 | }, {\r | |
40 | glyph: 42,\r | |
41 | disabled: true\r | |
42 | }]\r | |
43 | }, {\r | |
44 | plain: true,\r | |
45 | items: [{\r | |
46 | title: 'Active Tab',\r | |
47 | glyph: 72,\r | |
48 | html: KitchenSink.DummyText.longText\r | |
49 | }, {\r | |
50 | title: 'Inactive Tab',\r | |
51 | glyph: 99,\r | |
52 | html: KitchenSink.DummyText.extraLongText\r | |
53 | }, {\r | |
54 | title: 'Disabled Tab',\r | |
55 | glyph: 42,\r | |
56 | disabled: true\r | |
57 | }],\r | |
58 | listeners: {\r | |
59 | tabchange: 'onTabChange'\r | |
60 | }\r | |
61 | }]\r | |
62 | });\r |