Customize values

21 Feb 20171 minute to read

The “data-ej-maxvalue” attribute is used to denote the maximum value up to which the rating can be accepted. The data-ej-minvalue attribute is used to denote the minimum rating value. The “data-ej-value” attribute specifies the current selection value. The “data-ej-incrementstep” attribute specifies the step value incrementation between each rating value (star) selection.

  • HTML
  • <div id="rating_sample" data-role="ejmrating" data-ej-minvalue=2 data-ej-maxvalue=6 data-ej-value=4 data-ej-incrementstep=1>
    
    </div>

    The following screenshot displays the output.