easyui editor editor

$.extend($.fn.datagrid.defaults.editors, {
textarea: {
init: function(container, options){
var input = $('<input type="text" class="datagrid-editable-input" onclick="showclob(this);">').appendTo(container);
return input;
},
getValue: function(target){
return $(target).val();
},
setValue: function(target, value){
$(target).val(value);
},
resize: function(target, width){
var input = $(target);
if ($.boxModel == true){
input.width(width - (input.outerWidth() - input.width()));
} else {
input.width(width);
}
}
}
});

Guess you like

Origin www.cnblogs.com/zhuyeshen/p/10956507.html