【发布时间】:2020-03-25 17:54:06
【问题描述】:
我使用角度 ui-grid,底线是我有一个“性别”列,其中包含“男性”和“女性”。当我单击“MALE”下拉菜单时,所有 MALE 和 FEMALE 都会出现(显然是因为 m-a-l-e 在 f-e-m-a-l-e 中)。如何让过滤器区分两者?
{
field: 'sex'
, displayName: 'SEX'
, width: '120'
, editableCellTemplate: '<div><form name="inputForm"><input type="INPUT_TYPE" ng-class="\'colt\' + col.uid" ui-grid-editor ng-model="MODEL_COL_FIELD" style="border-bottom-color: #74B3CE; border-bottom-width: 2px;"></form></div>'
, filter: {
type: uiGridConstants.filter.SELECT,
selectOptions: [
{ value: 'male', label: 'male' },
{ value: 'female', label: 'female' }
]
}
},
【问题讨论】:
标签: angular-ui-grid