dotansimha / angularjs-dropdown-multiselect

AngularJS Dropdown Multiselect
http://dotansimha.github.io/angularjs-dropdown-multiselect/
MIT License
441 stars 455 forks source link

groupBy issue #327

Open JuliaNsk opened 7 years ago

JuliaNsk commented 7 years ago

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

pkempenaers commented 7 years ago

There currently is no way to order the groups, I'll add support for a sorting function.

JuliaNsk commented 7 years ago

When the next release is planned?

pkempenaers commented 7 years ago

When I have time to work on it :) I have other priorities right now.

akshay-bbytes commented 6 years ago

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..!!