I am using the angular-rating-icons to generate a star system.
<div class="rating-filter">
<h4>{{'Rating: '|translate}} {{filter.ratings}}</h4>
<div data-angular-rating-icons
ng-model="filter.ratings" color-base="orange"
on-change="fn()"></div>
</div>
I am looking to get a tooltip on each individual star similar to how it is implemented in uib-tooltip.
<div class="btn-group">
<button type="button" class="btn btn-price" uib-tooltip="₹0 - ₹500" ng-click="applyFilter(1)">$</button>
<button type="button" class="btn btn-price" uib-tooltip="₹500 - ₹1000" ng-click="applyFilter(2)">$$</button>
<button type="button" class="btn btn-price" uib-tooltip="₹1000 - ₹5000" ng-click="applyFilter(3)">$$$</button>
<button type="button" class="btn btn-price" uib-tooltip="₹5000+" ng-click="applyFilter(4)">$$$$</button>
</div>
I cannot seem to figure this out as angular-rating-icons takes in String to determine which icon is to be used for the rating system i.e. icon-full="fa-star" rather then passing in a <div> object. And I cannot seem to target individual stars since they are generated to be the minified CSS.
I tried overriding the css for .fa-star but that doesn't seem to work so well either. Is there a way to display a tooltip on hover for each button?
JSFiddle: https://jsfiddle.net/y4b1skdw/1/
You might have to hit the Load Type of the snippet to No wrap - bottom of <body> for the plugin to load.