easyui 动态修改窗口title
2015-10-10 21:58
621 查看
开门见山。
1、直接替换panel属性
例如:$('#dr_auth').panel({title: "新title"});
所有的窗体都继承了panel中的方法,所以可以直接用。
2、通过具体窗体替换属性
例如:$('#dr_auth').dialog({title: "新title"});
不推荐使用此种用法,因为会导致页面重新加载。
补充下获取窗体title或其他属性的方法:
so you can change the 'center''s properties like panel.
like this:
$("#myTitleDiv").panel({
title:"other title"
});
----------------------------------------------------------------
所以你可以改变的“中心”的属性,如面板。
是这样的: $(“#myTitleDiv”)。面板(“{
称号:”标题为“
});
-------------------------- --------------------------------------
本文转自http://www.bkjia.com/webzh/878654.html
1、直接替换panel属性
例如:$('#dr_auth').panel({title: "新title"});
所有的窗体都继承了panel中的方法,所以可以直接用。
2、通过具体窗体替换属性
例如:$('#dr_auth').dialog({title: "新title"});
不推荐使用此种用法,因为会导致页面重新加载。
补充下获取窗体title或其他属性的方法:
var opts = $('#dr_auth').panel('options'); var title = opts.title;//获取title属性
在easyui 中怎动态更改layout的 title?
layout dependencies:panel and resizable.so you can change the 'center''s properties like panel.
like this:
$("#myTitleDiv").panel({
title:"other title"
});
----------------------------------------------------------------
怎动态更改easyui中tab的title,tab页使用iframe
布局的依赖关系:面板和可调整大小的。所以你可以改变的“中心”的属性,如面板。
是这样的: $(“#myTitleDiv”)。面板(“{
称号:”标题为“
});
-------------------------- --------------------------------------
本文转自http://www.bkjia.com/webzh/878654.html
相关文章推荐
- NSLocalizedDescription=Request failed: unacceptable content-type: text/html 解决方法
- poj 2785 4 Values whose Sum is 0
- Request简单总结
- 用GUI实现求两个数的加法--方法二
- 用GUI实现求两个数的加法--方法一
- UICollectionView
- ACM学习历程—HDU4675 GCD of Sequence(莫比乌斯)
- build.gradle 文件
- 在UICollectionView上面添加分割线
- JuQueen(线段树 lazy)
- JuQueen(线段树 lazy)
- IOS-9-UIBarButtonItem导航条-添加自定义Left或者Right按钮
- EditorWindow 和MenuItem
- AndroidStuido在svn下需要忽略的文件
- iOS开发 ----- UIViewController转场动画
- UITabBarController中自定义UITabBar
- LeetCode -- Longest Consecutive Sequence
- ios之UITabBarItem显示真实自定义的图片而非颜色填充
- ubuntu中由于将用户权限修改为root导致只能使用guest进入图形化界面的解决方法
- UE4的Collision与Physics