easyui 添加行编辑器editor-combogrid

//放到easyui 对应的扩展datagrid 的js中 
$.extend($.fn.datagrid.defaults.editors, { combogrid: { init: function (container, options) { var input = $('<input type="text" class="datagrid-editable-input">').appendTo(container); input.combogrid(options); return input; }, destroy: function (target) { $(target).combogrid('destroy'); }, getValue: function (target) { return $(target).combogrid('getValue'); }, setValue: function (target, value) { $(target).combogrid('setValue', value); }, resize: function (target, width) { $(target).combogrid('resize', width); } } });

 

posted @ 2019-03-12 16:10  LIGHTPRO  阅读(1255)  评论(0编辑  收藏  举报