0
私は角度uiデータグリッドフレームワークを使用しており、固有の識別子で値をフィルタリングする必要があります。 Iは、以下のコードを有する:=番号:角度Uiデータグリッドフィルタの問題
var column =
{name: 'distrito', field: 'distrito.id', type: 'number',
displayName: 'Distrito', enableCellEdit: true, width: '135',
cellFilter:'listagemFacesFilter:editDropdownOptionsArray:editDropdownIdLabel:editDropdownValueLabel:row.entity.distrito.distrito',
editableCellTemplate: 'ui-grid/dropdownEditor',
editDropdownIdLabel: 'id', editDropdownValueLabel: 'distrito', editDropdownOptionsArray: $scope.listaDistritos,
filter: {type: uiGridConstants.filter.SELECT, selectOptions: $scope.listaDistritosFiltro}
};
$ scope.listaDistritosFiltroは、ID(INT)と値 とのArrayListである(機能のArrayListを返す)
選択を、例を用いてすべてのIDをフィルタリング1とid = 12同時に、id = 1またはid = 12の結果だけが必要です。
選択フィルタは文字列型のフィルタリングだと思います。
誰かが私を助けることができます。
ありがとうございました。 よろしく、あなたはおそらく、このフィルタを探している SMDC
あなたは読みやすくするために、あなたのコードをフォーマットしようとすることができます – Mike