]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * This example shows how to give your tab bar a custom look and feel typical of\r | |
3 | * app navigation.\r | |
4 | */\r | |
5 | Ext.define('KitchenSink.view.tab.NavigationTabs', {\r | |
6 | extend: 'Ext.tab.Panel',\r | |
7 | xtype: 'navigation-tabs',\r | |
8 | \r | |
9 | //<example>\r | |
10 | exampleTitle: 'Navigation Tabs',\r | |
11 | otherContent: [{\r | |
12 | type: 'Styles',\r | |
13 | path: 'classic/sass/src/view/tab/NavigationTabs.scss'\r | |
14 | }],\r | |
15 | //</example>\r | |
16 | \r | |
17 | height: 400,\r | |
18 | width: 600,\r | |
19 | \r | |
20 | \r | |
21 | ui: 'navigation',\r | |
22 | tabBar: {\r | |
23 | layout: {\r | |
24 | pack: 'center'\r | |
25 | },\r | |
26 | // turn off borders for classic theme. neptune and crisp don't need this\r | |
27 | // because they are borderless by default\r | |
28 | border: false\r | |
29 | },\r | |
30 | \r | |
31 | defaults: {\r | |
32 | iconAlign: 'top',\r | |
33 | bodyPadding: 15\r | |
34 | },\r | |
35 | \r | |
36 | items: [{\r | |
37 | title: 'Home',\r | |
38 | glyph: 72,\r | |
39 | html: KitchenSink.DummyText.longText\r | |
40 | }, {\r | |
41 | title: 'Users',\r | |
42 | glyph: 117,\r | |
43 | html: KitchenSink.DummyText.extraLongText\r | |
44 | }, {\r | |
45 | title: 'Groups',\r | |
46 | glyph: 85,\r | |
47 | html: KitchenSink.DummyText.longText\r | |
48 | }, {\r | |
49 | title: 'Settings',\r | |
50 | glyph: 42,\r | |
51 | html: KitchenSink.DummyText.extraLongText\r | |
52 | }]\r | |
53 | }); |