html部分:
<div isteven-multi-select
input-model="allPersonnelGrouped"
output-model="groupedOutput"
button-label="icon name"
item-label="icon name maker"
tick-property="ticked"
max-height="250px"
group-property="msGroup">
</div>


angularjs部分:
$http.get('/messages/shifts').success(function(data) {

$scope.groupedShifts = data;


angular.forEach( $scope.groupedShifts, function( groupShift ) {

$scope.allPersonnelGrouped = [
{ name: '<strong>All Shifts</strong>', msGroup: true },
{ name: '<strong>' + groupShift.title + '</strong>', msGroup: true },
{ icon: '', name: groupShift.personnel, maker: '(' + groupShift.email + ')', ticked: false },
{ msGroup: false },
{ msGroup: false }
];

});

});

posted on 2016-06-15 01:10  顺子2016  阅读(2010)  评论(0编辑  收藏  举报