Who is familiar with ExtJS, questions about closing the panel?

Source: Internet
Author: User

Who is familiar with ExtJS, questions about closing the panel?
For example: I wrote a var win = new Ext.window ({b.js}) in A.js; Win.show ();

Opens a new window and then writes a button to submit the message in B.js.

Now I want to be able to close win.show () after B's submission, what should I do when I come out of the window?

I try to use Window.close () in B, can't close, or can I call a fork event in the window to close?

With the Close event, I remember a question, close seems to be forever destroyed this object, you seem to re-write the method, re-put this window new out, with hide just hidden, in the development process with hide there are some problems, suggest close.
function Newwin () {

Arti_win = new Ext.window ({
Layout: ' Fit ',
width:860,
height:570,
Closeaction: ' Close ',//mostly set here, with hide and close
Resizable:false,
Shadow:true,
Closable:true,
Bodystyle: ' padding:5 5 5 5 ',
Animcollapse:true,
Modal:true,
Autodestroy:true,
Items:[form]
});
}

Solved, now to share
Parent. EXT.GETCMP (' B-win '). Close ();
You can use this.

Who is familiar with ExtJS, questions about closing the panel?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.