EasyUI常用总结
来源:互联网 发布:城觅倒闭 知乎 编辑:程序博客网 时间:2024/06/03 22:54
EasyUI 常用总结
- treeGrid
- tooltip
- layout
treegrid
- js代码:
$('#treeGrid').treegrid({ url : 'sys/resource/treeGrid', idField : 'id', treeField : 'name', frozenColumns : [ [ { field : 'id', title : '编号', width : 80 } ... ] ], columns : [ [{ width : '150', title : '上级资源', field : 'pid' }, ... { field : 'resourcetype', title : '资源类型', width : 100, formatter : function(value, row, index) { switch (value) { case 1: return '按钮'; case 0: return '菜单'; } } } , toolbar : '#toolbar' });
- html代码:
<table title="文件目录" class="easyui-treegrid" style="width:700px;height:250px" data-options="url: 'queryFileTree.do', method: 'get', rownumbers: true, idField: 'fullPath', treeField: 'label'"> <thead> <tr> <th data-options="field:'label'" width="220">label</th> <th data-options="field:'fullPath'" width="150">fullPath</th> <th data-options="field:'type'" width="100" align="center">type</th> </tr> </thead> </table>
- json数据格式:
[ { idFieldName:val1,treeFieldName:val2,...,children:[...] }, {...},... ]
- 节点折叠: 设置节点状态state=’closed|open’
tooltip
- js代码:
$("#controlId").tooltip({ position: 'left|right|top|bottom', content: 'html代码',//无该属性,默认显示控件title值 trackMouse:true,//跟随鼠标移动 onShow: function () { //自定义tooltip样式(最大宽度为500px,超过则自动换行) $(this).tooltip('tip').css({ maxWidth: '500px', wordWrap: 'break-word', wordBreak: 'normal' }); } });
- html代码
<span class="easyui-tooltip" data-options="trackMouse:true,onShow:function () {...}" title="提示内容">内容</span>
layout
- 折叠左侧导航:
$('#layout').layout('collapse','west');
0 0
- EasyUI常用总结
- EasyUI总结
- Easyui 总结
- easyui 总结
- EasyUI总结
- easyUI常用实例
- easyui常用控件样式
- jquey easyui 常用方法
- EasyUI 的常用方法
- easyui常用知识
- easyui常用组件
- EasyUI常用技能整理
- EasyUI tree常用方法
- easyUI常用属性
- EasyUI tab常用
- easyUI的常用API
- jquery-easyui常用demo
- easyui常用控件常用方法
- 深入了解MFC中的文挡/视结构
- ios显示gif格式图片
- 自定义换行容器
- 重新认识Java线程的概念
- Lucene.Net+盘古分词器(详细介绍)
- EasyUI常用总结
- 用photoshop+perfecticon工具制作icon程序图标
- weechat : can not be installed because plugin "perl" is not loaded
- 大数据架构:flume-ng+Kafka+Storm+HDFS 实时系统组合
- java 线程池的使用
- 【shell】/etc/bashrc、~/.bashrc、~/.bash_profile的区别和作用
- 【leetcode】Reverse Integer
- Spark IM插件(Sparkplug)开发环境搭建
- 第四次作业——个人作业——软件案例分析