我有这个==>
$scope.uiGrid306 = {
rowTemplate:rowtpl,
columnDefs: [{
field: '_ab_area', name: 'Area', width: "7%"
, filter: { type: uiGridConstants.filter.SELECT, selectOptions: AREAS }
}, { ...
}, {
field: '_ab_x_style', name: 'Groups', width: "5%"
, filter: { type: uiGridConstants.filter.SELECT, selectOptions: RISKS, condition: uiGridConstants.filter.EXACT
}
}
]//columnDefs
, enableFiltering: true
};//-->gridOptions
但是我的_ab_x_style所拥有的数据并不像我希望的那样是用户友好的。因此,我需要一个函数来将这些数据转换为用户友好的单词。问题是如何???
我有这个==> $ scope.uiGrid306 = {rowTemplate:rowtpl,columnDefs:[{字段:'_ab_area',名称:'Area',宽度:“ 7%”,过滤器:{类型:uiGridConstants.filter。 SELECT,...
为此,您需要将cellFilter应用于单元格内容。还有一个转换功能,用于下拉选项,其中还包含那些非用户友好的数据。