Open JuliaNsk opened 7 years ago
There currently is no way to order the groups, I'll add support for a sorting function.
When the next release is planned?
When I have time to work on it :) I have other priorities right now.
Group by issue in version 1.11.8
JS Code :
$scope.selectByGroupData = [ { id: 1, label: "David", gender: 'M' }, { id: 2, label: "Jhon", gender: 'M' }, { id: 3, label: "Lisa", gender: 'F' }, { id: 4, label: "Nicole", gender: 'F' }, { id: 5, label: "Danny", gender: 'M' }, { id: 6, label: "Unknown", gender: 'O' } ]; $scope.selectByGroupSettings = { groupBy: 'gender', };
HTML:
<div ng-dropdown-multiselect="" options="selectByGroupData" selected-model="genderCollection" extra-settings="selectByGroupSettings">
</div>
I tried by adding groupby attribute in html block also could not worked :( Above code group by not working or if I'm missing something not sure Please help asap Thanks in advance..!!
smth was changed in groupBy, I have two groups: 'My projects' vs 'Other projects'. Previously it was My then Other, and now Other than My. What should I do to sort goup names