我想将自定义按钮添加到 ColumnChooser 对话框中,并使其表现得像其他人一样。我试图得到这样的东西(默认按钮)
_this.table.jqGrid("navButtonAdd", _this.pid, {
caption: "",
buttonicon: "icon",
title: "Title",
onClickButton: function() {
return self.table.jqGrid("columnChooser", {
done: function(perm) {
if (perm) {
self.table.jqGrid("remapColumns", perm, true);
return $(window).triggerHandler("resize.jqGrid");
}
},
dialog_opts: {
modal: true,
resizable: false
},
msel_opts: {
dividerLocation: 0.5
},
width: 460
});
}
});