Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- xtype: 'container',
- text: 'SOMETHING',
- height: '15%',
- width: '15%',
- itemId: 'optionsMenu',
- hidden: true,
- style: 'background:red',
- },
- {
- fn: 'onOptionsButtonTap',
- event: 'tap',
- delegate: '#optionsButton'
- }
- onOptionsButtonTap: function() {
- var optionsPanel = this.down('#optionsMenu');
- console.log(optionsPanel.isHidden());
- if(optionsPanel.isHidden()) {
- optionsPanel.showBy(this.down('#optionsButton'));
- //optionsPanel.addAfterListener('tap', this.onOptionsButtonTap);
- }
- else
- optionsPanel.hide();
- },
- {
- xtype: 'container',
- text: 'SOMETHING',
- name: 'option_menu',
- height: '15%',
- width: '15%',
- hidden: true,
- style: 'background:red'
- }
- onOptionsButtonTap: function(button) {
- var me = this, optionsPanel = me.getOptionMenu();
- console.log(optionsPanel.isHidden());
- if(optionsPanel.isHidden()) {
- optionsPanel.showBy(button);
- }
- else{
- optionsPanel.hide();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement