]> git.proxmox.com Git - extjs.git/blame - extjs/build/examples/kitchensink/modern/src/view/Icons.js
add extjs 6.0.1 sources
[extjs.git] / extjs / build / examples / kitchensink / modern / src / view / Icons.js
CommitLineData
6527f429
DM
1/**\r
2 * Demonstrates some of the many icons availble via the framework\r
3 */\r
4Ext.define('KitchenSink.view.Icons', {\r
5 extend: 'Ext.tab.Panel',\r
6\r
7 config: {\r
8 activeTab: 0,\r
9 layout: {\r
10 animation: {\r
11 type: 'slide',\r
12 duration: 250\r
13 }\r
14 },\r
15 tabBar: {\r
16 layout: {\r
17 pack : 'center',\r
18 align: 'center'\r
19 },\r
20 docked: 'bottom',\r
21 scrollable: null\r
22 },\r
23 defaults: {\r
24 scrollable: true\r
25 },\r
26 items: [\r
27 {\r
28 iconCls: 'x-fa fa-info-circle',\r
29 title : 'Info',\r
30 cls : 'card',\r
31 html : 'Tabs and Buttons can display any <a href="http://fortawesome.github.io/Font-Awesome/icons/">Font Awesome</a> icon using the <code>iconCls</code> config.'\r
32 },\r
33 {\r
34 iconCls: 'x-fa fa-download',\r
35 title : 'Download',\r
36 cls : 'card dark',\r
37 html : '<span class="action">User tapped Download</span>'\r
38 },\r
39 {\r
40 iconCls: 'x-fa fa-star',\r
41 title : 'Favorites',\r
42 cls : 'card',\r
43 html : '<span class="action">User tapped Favorites</span>',\r
44 hidden: (Ext.filterPlatform('ie10') && Ext.os.is.Phone) ? true : false\r
45 },\r
46 {\r
47 iconCls: 'x-fa fa-bookmark',\r
48 title : 'Bookmarks',\r
49 cls : 'card dark',\r
50 html : '<span class="action">User tapped Bookmarks</span>',\r
51 hidden: (Ext.filterPlatform('ie10') && Ext.os.is.Phone) ? true : false\r
52 },\r
53 {\r
54 iconCls: 'x-fa fa-ellipsis-h',\r
55 title : 'More',\r
56 cls : 'card',\r
57 html : '<span class="action">User tapped More</span>'\r
58 },\r
59 {\r
60 xtype : 'toolbar',\r
61 ui: 'neutral',\r
62 docked: 'top',\r
63 scrollable: null,\r
64 defaults: {\r
65 ui: 'plain'\r
66 },\r
67 items: [\r
68 { iconCls: 'x-fa fa-check' },\r
69 { iconCls: 'x-fa fa-plus' },\r
70 { iconCls: 'x-fa fa-pencil-square-o' },\r
71 { iconCls: 'x-fa fa-times' },\r
72 { iconCls: 'x-fa fa-refresh' },\r
73 { iconCls: 'x-fa fa-reply' }\r
74 ],\r
75 layout: {\r
76 pack : (Ext.filterPlatform('ie10') && !Ext.os.is.Phone) ? 'start' : 'center',\r
77 align: 'center'\r
78 }\r
79 }\r
80 ]\r
81 }\r
82});\r