您的位置:首页 > 产品设计 > UI/UE

Easyui datagrid在线编辑时没有提供带时分秒的datetimebox控件,需要自己扩展

2017-10-10 19:43 337 查看
$.extend($.fn.datagrid.defaults.editors,{
datetimebox:{
init:function(container,options){
var input = $('<input type="text">').appendTo(container);
options.editable = false;
input.datetimebox(options);
return input;
},
getValue:function(target){
return $(target).datetimebox('getValue');
},
setValue:function (target, value) {
$(target).datetimebox('setValue',value);
},
resize:function (target, width) {
$(target).datetimebox('resize',width);
},
destroy:function(target){
$(target).datetimebox('destroy');
}
}
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐