Javascript 如何自定义jsGrid新行位置
如何自定义jsGrid中新行的位置。当单击“+”图标以在表格末尾显示新行时 jsGrid中的新行:Javascript 如何自定义jsGrid新行位置,javascript,jsgrid,Javascript,Jsgrid,如何自定义jsGrid中新行的位置。当单击“+”图标以在表格末尾显示新行时 jsGrid中的新行: _createInsertRow: function() { if($.isFunction(this.insertRowRenderer)) return $(this.renderTemplate(this.insertRowRenderer, this)); var $result = $("<tr>"
_createInsertRow: function() {
if($.isFunction(this.insertRowRenderer))
return $(this.renderTemplate(this.insertRowRenderer, this));
var $result = $("<tr>").addClass(this.insertRowClass);
this._eachField(function(field) {
this._prepareCell("<td>", field, "insertcss")
.append(this.renderTemplate(field.insertTemplate, field))
.appendTo($result);
});
return $result;
},
\u createInsertRow:function(){
if($.isFunction(this.insertRowRenderer))
返回$(this.renderTemplate(this.insertRowRenderer,this));
var$result=$(“”).addClass(this.insertRowClass);
此.\u每个字段(函数(字段){
此._prepareCell(“,字段,“insertcss”)
.append(this.renderTemplate(field.insertTemplate,field))
.附于($结果);
});
返回$result;
},
我可以用上面的代码段编辑什么?我可以用上面的代码段编辑什么?