paip.gui控件tabs控件加载内容的原理以及easyui最佳实现
生活随笔
收集整理的這篇文章主要介紹了
paip.gui控件tabs控件加载内容的原理以及easyui最佳实现
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
paip.gui控件tabs控件加載內(nèi)容的原理以及easyui最佳實(shí)現(xiàn)
//tabs控件的加載
同form窗體一樣,倆個(gè)方式
兩個(gè)方式:一個(gè)是url,簡單的文本可以使用這個(gè),不適合事件的情形..
一個(gè)是容器方式(iframe),推薦這個(gè),,,
===========keyword
tab的切換已經(jīng)新增。。代碼如下
作者Attilax 艾龍,? EMAIL:1466519819@qq.com
來源:老哇的爪子 Attilax
地址:http://blog.csdn.net/attilax
?function createTab(tabname) {
??? ?var pp = $('#tabidx').tabs('getTab',tabname);
??? ?//alert(pp);
?? ?//if exist tab,swith to this tab
??? ?if (pp != null) $('#tabidx').tabs('select',tabname)
??? ?if (pp == null) {
??? ??? ?// add a new tab panel
??? ??? ?$('#tabidx').tabs('add', {
??? ??? ??? ?title: tabname,
??? ??? ??? ?content: '<iframe src="blockMana.htm"? width="100%" marginwidth="0"? height="350px" marginheight="0" frameborder="0"></iframe>',
??? ??? ??? ?closable: true,
??? ??? ??? ?tools: [{
??? ??? ??? ??? ?iconCls: 'icon-mini-refresh',
??? ??? ??? ??? ?handler: function() {
??? ??? ??? ??? ??? ?alert('refresh');
??? ??? ??? ??? ?}
??? ??? ??? ?}]
??? ??? ?});
??? ?}
?}
//tabs控件的加載
同form窗體一樣,倆個(gè)方式
兩個(gè)方式:一個(gè)是url,簡單的文本可以使用這個(gè),不適合事件的情形..
一個(gè)是容器方式(iframe),推薦這個(gè),,,
===========keyword
tab的切換已經(jīng)新增。。代碼如下
作者Attilax 艾龍,? EMAIL:1466519819@qq.com
來源:老哇的爪子 Attilax
地址:http://blog.csdn.net/attilax
?function createTab(tabname) {
??? ?var pp = $('#tabidx').tabs('getTab',tabname);
??? ?//alert(pp);
?? ?//if exist tab,swith to this tab
??? ?if (pp != null) $('#tabidx').tabs('select',tabname)
??? ?if (pp == null) {
??? ??? ?// add a new tab panel
??? ??? ?$('#tabidx').tabs('add', {
??? ??? ??? ?title: tabname,
??? ??? ??? ?content: '<iframe src="blockMana.htm"? width="100%" marginwidth="0"? height="350px" marginheight="0" frameborder="0"></iframe>',
??? ??? ??? ?closable: true,
??? ??? ??? ?tools: [{
??? ??? ??? ??? ?iconCls: 'icon-mini-refresh',
??? ??? ??? ??? ?handler: function() {
??? ??? ??? ??? ??? ?alert('refresh');
??? ??? ??? ??? ?}
??? ??? ??? ?}]
??? ??? ?});
??? ?}
?}
總結(jié)
以上是生活随笔為你收集整理的paip.gui控件tabs控件加载内容的原理以及easyui最佳实现的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [转]在Windows中安装PhpUni
- 下一篇: 找单词(母函数问题)