inmagik / ionic-modal-select

Modal select for Ionic Framework
https://inmagik.github.io/ionic-modal-select
MIT License
174 stars 70 forks source link

Its possible group by the select values? #74

Closed iosdroid closed 5 years ago

iosdroid commented 8 years ago

select values group by some value its not working

bianchimro commented 8 years ago

hi, can you post an example?

iosdroid commented 8 years ago

Hi I have a array like $scope.players = [ {id:'1',name: 'Gene', team: 'alpha'}, {id:'2',name: 'George', team: 'alpha'}, {id:'3',name: 'Steve', team: 'beta'}, {id:'4',name: 'Paula', team: 'beta'}, {id:'5',name: 'Scruath', team: 'gamma'} ];

I want to show the select like albha

beta

gamma

bianchimro commented 8 years ago

Hi you can pass in a custom template, but it's not (yet) documented. see this codepen for an example of template customization:

http://codepen.io/meanme/pen/ONmGzW

iosdroid commented 8 years ago

I am in little confusion. can u create custom templates for my examples?

bianchimro commented 8 years ago

sorry but I am quite busy at the moment. If you are not in a hurry I will help ASAP. Maybe you can setup a codepen so that i can edit it?

iosdroid commented 8 years ago

No Issues..I am Wait for your example