Implement jquery Easyui tabs tab close icon after load custom event

Source: Internet
Author: User

When you close the Tabs tab in the project, the bottom footer need to reposition Calcfooter () via JavaScript, how do I do that? The Close icon on the tab is Easyui, Calcfooter () does not work in OnClose, there is no closed method in the API, but there is a method onbeforeclose before closing, In the Onbeforeclose method, implement the OnClose () method first, then Calcfooter (), and return false, so as to achieve the desired effect

The code is as follows:

$ (' #tt '). Tabs ({  onbeforeclose:function (title,index) {var target = This;var opts = $ (target). Tabs (' Options '); o Pts.onbeforeclose = function () {};  Allow now to close $ (target). Tabs (' Close ', index); Calcfooter (); return false;//block Close  }});

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Implement jquery Easyui tabs tab close icon after load custom event

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.