jQuery EasyUI 获取tabs的实例解析
左边tree,右边tabs。点击tree增加相应的tabs
function addtabs(node) { var start = ”; var end = ”; if((‘#tt').tabs(‘exists',node.text)) {(‘#tt').tabs(‘select',node.text); (‘#tt').tabs(‘select',node.text); } else {(‘#tt').tabs(‘add',{ “title”:node.text, “fit”:true, “content”:”, “selected”:true, “border”:false, “plain”:true, “scrollIncrement”:400, “scrollDuration”:200, “closable”:true, tools:[{ iconCls:'icon-reload', handler:function(){ reloadTabs(node); }, “toolPosition”:”left”, }], ‘dnd':true }); } }
获取tabs属性
function gettabs(node){ var menuName=parent.(‘#tt').tabs(‘getSelected').panel(‘options'); //获取选中tabs 对象 var id =parent.(“#category”).tree(‘getSelected');//获取选中tree对象 console.info(menuName); console.info(id); }
刷新tabs
function reloadTabs(node) { var tab = (‘#tt').tabs(‘getTab',node.text);(‘#tt').tabs(‘update',{ tab: tab, options: tab.panel(‘options') }); }
相关推荐
yogoma 2020-05-30
Wmeng0 2020-05-29
82550495 2013-05-10
smj000 2019-12-18
HotStrong 2014-07-07
84403067 2015-02-12
那年夏天 2019-06-29
ruoyiqing 2016-04-06
芯果科技蔡彦 2015-10-16
wustrive00 2015-02-12
XHQT0 2014-09-26
suis 2014-09-26
UC浏览器搜索引擎 2019-06-26
hackcat 2013-05-10
81751330 2013-04-24
lining 2012-12-31
87281248 2012-12-28
钱多多 2012-12-24