Rating directive that will take care of visualising a star rating bar.
<uib-rating>
ng-model
: The current rate.
max
(Defaults: 5) : Changes the number of icons.
readonly
(Defaults: false) : Prevent user's interaction.
titles
(Defaults: ["one", "two", "three", "four", "five"]) : An array of Strings defining titles for all icons
on-hover(value)
: An optional expression called when user's mouse is over a particular icon.
on-leave()
: An optional expression called when user's mouse leaves the control altogether.
state-on
(Defaults: null) : A variable used in template to specify the state (class, src, etc) for selected icons.
state-off
(Defaults: null) : A variable used in template to specify the state for unselected icons.
rating-states
(Defaults: null) : An array of objects defining properties for all icons. In default template, stateOn
& stateOff
property is used to specify the icon's class.