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