依赖类库版本;
jquery-1.8.0.js
jquery-easyui-1.3.1
1.添加引用
<%--颜色选择器 开始--%>
<link href="Style/js/colorpicker/css/colorpicker.css" rel="stylesheet" type="text/css" />
<script src="Style/js/colorpicker/js/colorpicker.js" type="text/javascript"></script>
<script src="Style/js/colorpicker/js/colorpickerEditor.js" type="text/javascript"></script>
<script src="Style/js/colorpicker/js/eye.js" type="text/javascript"></script>
<script src="Style/js/colorpicker/js/utils.js" type="text/javascript"></script>
<script src="Style/js/colorpicker/js/layout.js?ver=1.0.2" type="text/javascript"></script>
<%--颜色选择器 结束--%>
2.指定编辑器为colorpicker
{ field: 'color', title: '颜色', editor:'colorpicker', aglin: 'center', width: 100, formatter: function (value, row, index) {
value=value.replace(/0x/, "#");
return formatString('<div style="background-color:{0};width:100%;">{1}</div>',value,value);
}},
easyui datagrid 自定义编辑器 colorpickerEditor
4星 · 超过85%的资源 需积分: 44 91 浏览量
2013-02-22
10:24:45
上传
评论 3
收藏 93KB ZIP 举报
zeroes2021
- 粉丝: 17
- 资源: 31
最新资源
- tensorflow-gpu-2.5.3-cp37-cp37m-manylinux2010-x86-64.whl
- tensorflow-gpu-2.2.1-cp35-cp35m-win-amd64.whl
- tensorflow-gpu-2.5.3-cp38-cp38-manylinux2010-x86-64.whl
- 2023-04-06-项目笔记 - 第一百三十五阶段 - 4.4.2.133全局变量的作用域-133 -2024.05.16
- Screenshot_20240516_224007.jpg
- IEEE802.3dj-800G DR4 & 1.6T DR8-welch-3dj-01a-230206 .pdf
- Matlab三维图绘制基础了解
- IEEE802.3dj-800GBASE FR4-welch-3dj-01a-2401 .pdf
- 实验3-拆弹专家-3023244203-刘宇翔
- base.apk
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
- 3
- 4
- 5
- 6
前往页