首页 > 其他 > 详细

isteven-multi-select

时间:2016-06-15 01:46:10      阅读:1070      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!