jqueryeasyui-datagrid-编辑器扩展-日期时间编辑器
来源:互联网 发布:itunes软件下载目录 编辑:程序博客网 时间:2024/06/10 08:58
//datagrid 编辑器扩展
$.extend($.fn.datagrid.defaults.editors, {
datetimebox: {
init: function (container, options) {
var input = $('<input type="text" class="easyui-datetimebox">')
.appendTo(container);
//编辑框延迟加载
window.setTimeout(function () {
input.datetimebox($.extend({ editable: false }, options));
}, 10);
//input.datetimebox($.extend({ editable: false }, options));
return input;
},
getValue: function (target) {
return $(target).datetimebox('getValue');
},
setValue: function (target, value) {
$(target).val(value);
window.setTimeout(function () {
$(target).datetimebox('setValue', value);
}, 150);
},
resize: function (target, width) {
var input = $(target);
if ($.boxModel == true) {
input.width(width - (input.outerWidth() - input.width()));
} else {
input.width(width);
}
}
}
$.extend($.fn.datagrid.defaults.editors, {
datetimebox: {
init: function (container, options) {
var input = $('<input type="text" class="easyui-datetimebox">')
.appendTo(container);
//编辑框延迟加载
window.setTimeout(function () {
input.datetimebox($.extend({ editable: false }, options));
}, 10);
//input.datetimebox($.extend({ editable: false }, options));
return input;
},
getValue: function (target) {
return $(target).datetimebox('getValue');
},
setValue: function (target, value) {
$(target).val(value);
window.setTimeout(function () {
$(target).datetimebox('setValue', value);
}, 150);
},
resize: function (target, width) {
var input = $(target);
if ($.boxModel == true) {
input.width(width - (input.outerWidth() - input.width()));
} else {
input.width(width);
}
}
}
});
转自:http://blog.csdn.net/xxj_jing/article/details/12712093
0 0
- jqueryeasyui-datagrid-编辑器扩展-日期时间编辑器
- jqueryeasyui-datagrid-编辑器扩展-日期时间编辑器
- JqueryEasyUI之DataGrid扩展
- QT:日期时间编辑器MyDateTimeEdit
- jqueryeasyui-datagrid-扩展-支持单元格编辑
- 编辑器扩展
- Easyui之Datagrid编辑器Editor扩展(timespinner)
- jqueryeasyui datagrid
- easyui-datagrid扩展--》对时间日期的要求
- Rcp Edit 扩展编辑器
- unity编辑器扩展
- 扩展 Shader 编辑器
- unity3d扩展编辑器
- Unity编辑器扩展
- unity 编辑器工具扩展
- Unity3d 编辑器扩展
- Unity3D-扩展编辑器
- unity-编辑器扩展
- 【状压DP】[UVA1252] Twenty Questions
- 关于keystore
- MXS - CSDN 博客开写啦!
- 第16周项目2-比较两个字符串长度(指针作形参)
- iOS Crash闪退信息捕获工具类
- jqueryeasyui-datagrid-编辑器扩展-日期时间编辑器
- android4.0电源管理详解
- Qt SVG Viewer Demo 解读
- UITableVIew 滚动流畅性优化
- linux lib路径的问题
- 公网/内网IP分配及NAT地址转换协议
- HTTP 错误 404.13 - Not Found 请求筛选模块被配置为拒绝超过请求内容长度的请求
- 密码学1——Java 加密解密基础
- Python 正则表达式查找XML注释中的特定词