ui-grid의 필드 중 하나의 헤더에 드롭 다운 값을 가져 오려고합니다. 동일한 필드의 경우 모든 행에 대한 드롭 다운이 정상적으로 작동합니다. 헤더 드롭 다운 선택에 따라 행의 모든 드롭 다운 값을 선택해야합니다. 여기에 내 plunker 링크입니다. 누군가 제발 도와 드릴까요?ui-grid AngularJS의 헤더 드롭 다운
여기에 a link입니다!
var jsonDef = { name: 'Status', field: 'Status', width: 150,
editType: 'dropdown',
editableCellTemplate: 'ui-grid/dropdownEditor',
headerCellTemplate: '<div class="ui-grid-cell-contents header-tcsi"><select
ng-required = "true" ng-options="options.id as options.type for tcsiOption
in grid.appScope.MainCtrl" ng-model="grid.appScope.selectedTCSI"></select>
</div>',
editDropdownIdLabel: 'id',
editDropdownValueLabel: 'type',
filter: {
type: uiGridConstants.filter.SELECT,
condition: uiGridConstants.filter.EXACT }
};
var options = [{
id: 1,
type: 'Closed'
}, {
id: 2,
type: 'Pending'
}, {
id: 3,
type: 'Open'
}];
데이터를 필터링하려고합니까? –
모든 행 값에 선택한 머리글 값을 할당하려고합니다 (드롭 다운 값은 머리글과 행에 대해 동일합니다). –