This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ <h4>Default</h4>
10
10
< hr />
11
11
12
12
< h4 > Custom icons</ h4 >
13
- < div ng-init ="x = 5 "> < rating value ="x " max ="15 " state-on ="'icon -ok-sign' " state-off ="'icon -ok-circle' "> </ rating > < b > (< i > Rate:</ i > {{x}})</ b > </ div >
13
+ < div ng-init ="x = 5 "> < rating value ="x " max ="15 " state-on ="'glyphicon -ok-sign' " state-off ="'glyphicon -ok-circle' "> </ rating > < b > (< i > Rate:</ i > {{x}})</ b > </ div >
14
14
< div ng-init ="y = 2 "> < rating value ="y " rating-states ="ratingStates "> </ rating > < b > (< i > Rate:</ i > {{y}})</ b > </ div >
15
15
</ div >
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ var RatingDemoCtrl = function ($scope) {
9
9
} ;
10
10
11
11
$scope . ratingStates = [
12
- { stateOn : 'icon -ok-sign' , stateOff : 'icon -ok-circle' } ,
13
- { stateOn : 'icon -star' , stateOff : 'icon -star-empty' } ,
14
- { stateOn : 'icon -heart' , stateOff : 'icon -ban-circle' } ,
15
- { stateOn : 'icon -heart' } ,
16
- { stateOff : 'icon -off' }
12
+ { stateOn : 'glyphicon -ok-sign' , stateOff : 'glyphicon -ok-circle' } ,
13
+ { stateOn : 'glyphicon -star' , stateOff : 'glyphicon -star-empty' } ,
14
+ { stateOn : 'glyphicon -heart' , stateOff : 'glyphicon -ban-circle' } ,
15
+ { stateOn : 'glyphicon -heart' } ,
16
+ { stateOff : 'glyphicon -off' }
17
17
] ;
18
18
} ;
Original file line number Diff line number Diff line change 1
1
< span ng-mouseleave ="reset() ">
2
- < i ng-repeat ="r in range " ng-mouseenter ="enter($index + 1) " ng-click ="rate($index + 1) " ng-class ="$index < val && (r.stateOn || 'glyphicon glyphicon -star') || (r.stateOff || 'glyphicon glyphicon-star-empty') "> </ i >
2
+ < i ng-repeat ="r in range " ng-mouseenter ="enter($index + 1) " ng-click ="rate($index + 1) " class =" glyphicon " ng-class ="$index < val && (r.stateOn || 'glyphicon-star') || (r.stateOff || 'glyphicon-star-empty') "> </ i >
3
3
</ span >
You can’t perform that action at this time.
0 commit comments