打印

tabLayout 标签控制问题(结贴)

tabLayout 标签控制问题(结贴)

<P>tabLayout 中如何确定打开的几个标签页,并关闭其中的一个标签页</P>
<P> </P>
<P>例子中是使用javascript实现的打开,关闭如何实现呢?</P>
<P> </P>
<P>tabs.add({<BR>      id : url,<BR>      title: title,<BR>      iconCls: iconCls,<BR>      html: '&lt;iframe id="' + url + '_frame" style="overflow-x:hidden;width:100%;height:100%" ' +<BR>          'src="' + url + '" border="0"' +<BR>          'vspace="0" hspace="0" marginwidth="0" ' +<BR>          'marginheight="0" framespacing="0" ' +<BR>          'frameborder="0" &gt;',<BR>      closable:true</P>
<P>})</P>

[ 本帖最后由 freddy 于 2008-8-15 17:25 编辑 ]

TOP

<P>function closeTab(url){<BR>    if(typeof tabs !== "undefined") {<BR>     var item = tabs.getItem(url);<BR>     if(item) {<BR>      alert(url);<BR>      tabs.remove(url,true);<BR>      return;<BR>     }<BR>    }<BR>   }</P>
<P> </P>
<P>自己结贴吧</P>

TOP