0
我试图让行只能选择$treeLevel
。 控制台返回ReferenceError: uiGridConstants is not defined
。我不得不承认,我不完全理解uiGridConstants代表什么。enableSelection和uiGridConstants
这里是我的代码:
onRegisterApi: function (gridApi) {
this.gridApiBatches = gridApi;
console.info(gridApi);
gridApi.grid.options.enableSelection = function (row) {
if (row.entity.$treeLevel != 3) {
return false;
} else {
return true;
}
};
gridApi.core.notifyDataChange(uiGridConstants.dataChange.OPTIONS);
谢谢!我的代码不起作用,但uiGridConstants被识别为:-) –