ExtJS(5.0): Hide/Destroy floating panel when its show by target gets hidden/destroyed -


i explain problem example: there 2 panels p1 & p2(floating).i have assigned p1 p2's showby.now when destroy/hide p1 ideally p2 must hidden.but in case p2 remains shown. there way can automatically hide p2 when p1 gets hidden/destroyed.

i emissary suggested.

add listener p1 hide p2 when p1 gets destroyed or hidden.

p1.on('destroy', p2.hide, p2);  p1.on('hide', p2.hide, p2);  

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -