]> git.proxmox.com Git - extjs.git/blame - extjs/modern/theme-blackberry/src/ux/ActionOverFlowMenuButton.js
add extjs 6.0.1 sources
[extjs.git] / extjs / modern / theme-blackberry / src / ux / ActionOverFlowMenuButton.js
CommitLineData
6527f429
DM
1/**\r
2 * User extension designed to be used on the BB10 platform.\r
3 *\r
4 * This component is used to recreate the Action Over Flow Menu component of the BB10 SDK. To recreate a native BB10 experience, it is\r
5 * advised to insert this component into a {@link Ext.Toolbar} and have it aligned to the right edge.\r
6 *\r
7 * // Used within a toolbar\r
8 * {\r
9 * xtype: 'toolbar',\r
10 * items: [{\r
11 * xclass: 'Ext.theme.blackberry.ActionOverFlowMenuButton',\r
12 * menuItems: [{\r
13 * text: 'Chats',\r
14 * iconCls: 'chats',\r
15 * handler: function() {\r
16 * // do something\r
17 * }\r
18 * }, {\r
19 * text: 'Contacts',\r
20 * iconCls: 'contacts',\r
21 * handler: function() {\r
22 * // do something\r
23 * }\r
24 * }, {\r
25 * docked: 'bottom',\r
26 * text: 'Settings',\r
27 * iconCls: 'settings',\r
28 * handler: function() {\r
29 * // do something\r
30 * }\r
31 * }]\r
32 * }]\r
33 * }\r
34 */\r
35Ext.define('Ext.theme.blackberry.ActionOverFlowMenuButton', {\r
36 extend: 'Ext.theme.blackberry.MenuButton',\r
37\r
38 config: {\r
39 /**\r
40 * @hide\r
41 */\r
42 cls: 'overflow',\r
43\r
44 /**\r
45 * @hide\r
46 */\r
47 ui: 'normal',\r
48\r
49 /**\r
50 * The items to be used within the {@link Ext.Menu} which is shown when this button is tapped.\r
51 *\r
52 * // Used within a toolbar\r
53 * {\r
54 * xtype: 'toolbar',\r
55 * items: [{\r
56 * xclass: 'Ext.ux.ActionMenuButton',\r
57 * text: 'Chats',\r
58 * iconCls: 'chats',\r
59 * menuItems: [{\r
60 * text: 'Chats',\r
61 * iconCls: 'chats',\r
62 * handler: function() {\r
63 * // do something\r
64 * }\r
65 * }, {\r
66 * text: 'Contacts',\r
67 * iconCls: 'contacts',\r
68 * handler: function() {\r
69 * // do something\r
70 * }\r
71 * }, {\r
72 * docked: 'bottom',\r
73 * text: 'Settings',\r
74 * iconCls: 'settings',\r
75 * handler: function() {\r
76 * // do something\r
77 * }\r
78 * }]\r
79 * }]\r
80 * }\r
81 * \r
82 * @type {}\r
83 */\r
84 menuItems: [],\r
85\r
86 /**\r
87 * @hide\r
88 */\r
89 menuCover: true,\r
90\r
91 /**\r
92 * @hide\r
93 */\r
94 menuCls: 'action-over-flow'\r
95 }\r
96});