码迷,mamicode.com
首页 > 其他好文 > 详细

isteven-multi-select

时间:2016-06-15 01:47:33      阅读:1895      评论:0      收藏:0      [点我收藏+]

标签:

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 }
];

});

});

isteven-multi-select

标签:

原文地址:http://www.cnblogs.com/shunzdd/p/5586024.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!