optional required

Rating Directives
Create & Control Semantic UI Rating with Angular Directives

sm-rating
Creates a rating.

Attributes
Callback Attributes
Example


        

sm-rating-bind
A lightweight attribute directive which calls rating() on the element with the settings object passed to the attribute. Using this directive means you need to manage the communication between Angular and Semantic UI yourself.



        

Behavior Directives

These attribute directives invoke a behavior on the component where the attribute value can be one of the following formats:

String
Object
Example


        
Execute Simple Behavior Execute Advanced Behavior

sm-rating-set
When a DOM event fires on the element with the directive, it can command rating(s) to be set.



        
Set to 1

sm-rating-disable / sm-rating-enable
When a DOM event fires on the element with the directive, it can command rating(s) to be disabled or enabled.



        
Disable Enable

sm-rating-clear
When a DOM event fires on the element with the directive, it can command rating(s) to be cleared of a value.



        
Clear