]>
git.proxmox.com Git - extjs.git/blob - extjs/modern/theme-blackberry/src/ux/TabMenuButton.js
2 * User extension designed to be used on the BB10 platform.
4 * This component is used to recreate the Tab Menu component of the BB10 SDK. To recreate a native BB10 experience, it is
5 * advised to insert this component into a {@link Ext.Toolbar} and have it aligned to the left edge.
7 * // Used within a toolbar
11 * xclass: 'Ext.theme.blackberry.TabMenuButton',
17 * handler: function() {
22 * iconCls: 'contacts',
23 * handler: function() {
30 Ext
.define('Ext.theme.blackberry.TabMenuButton', {
31 extend
: 'Ext.theme.blackberry.MenuButton',
45 * The items to be used within the {@link Ext.Menu} which is shown when this button is tapped.
47 * // Used within a toolbar
51 * xclass: 'Ext.theme.blackberry.TabMenuButton',
57 * handler: function() {
62 * iconCls: 'contacts',
63 * handler: function() {
80 onMenuButtonTap: function(button
) {
82 this.setText(button
.getText());
83 this.setIconCls(button
.getIconCls());
86 Ext
.Viewport
.hideMenu(this.getMenuSide());