Skip to content

Latest commit

 

History

History
 
 

rating

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Rating directive that will take care of visualising a star rating bar.

uib-rating settings

  • max $ C (Default: 5) - Changes the number of icons.

  • ng-model $ - The current rate.

  • 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.

  • rating-states $ (Default: null) - An array of objects defining properties for all icons. In default template, stateOn & stateOff property is used to specify the icon's class.

  • read-only $ (Default: false) - Prevent user's interaction.

  • titles $ C (Default: ['one', 'two', 'three', 'four', 'five']`) - An array of strings defining titles for all icons.

  • enable-reset $ (Default: true) - Clicking the icon of the current rating will reset the rating to 0.

  • state-off $ C (Default: null) - A variable used in the template to specify the state for unselected icons.

  • state-on $ C (Default: null) - A variable used in the template to specify the state (class, src, etc) for selected icons.