-
9 Aug 2010 5:18 AM #1
Hiding an overlay with a nested button
Hiding an overlay with a nested button
Hey everyone. I'm trying to find a way to hide a popup overlay with a nested button or listen event. I'm able to hide the panel itself, but the overlay still remains and so does the mask. Does anyone know how I can overcome this?
-
9 Aug 2010 5:23 AM #2
to simplify, I want to mimic the effect you get when clicking outside of a popup, but by using a button within the popup.
-
9 Aug 2010 5:28 AM #3
Call the hide method on the panel.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
9 Aug 2010 5:31 AM #4
Code:Ext.setup({ tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', icon: 'icon.png', glossOnIcon: false, onReady: function() { var p = new Ext.Panel({ floating: true, width: 200, height: 200, modal: true, dockedItems: [{ xtype: 'toolbar', dock: 'top', items: [{ text: 'Hide', handler: function(){ p.hide(); } }] }] }).show(); } });Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
9 Aug 2010 5:47 AM #5
Evant gave me a hand with this in the IRC channel. Instead of using addListener, we used on() (which allows you to set the scope).
Similar Threads
-
Disabling or hiding DatePicker today button [2.0.1]
By halkon_polako in forum Community DiscussionReplies: 5Last Post: 30 Oct 2008, 11:37 PM -
hiding close button of Ext.Msg
By wavel in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 5 Oct 2008, 11:22 PM -
TabPanels hiding Collapse button
By Domitian in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 1 Dec 2007, 12:03 PM -
BasicDialog hiding with form button
By StealthRT in forum Ext 1.x: Help & DiscussionReplies: 9Last Post: 5 Feb 2007, 11:11 PM


Reply With Quote