Class: Rating

caph.stripe.ui.component. Rating

new Rating(property)

A class which provides a five star point rating in stripe theme. This component has intended to have fixed size according to resolution. If you change the size of this class instance, do not assure the appearance.

Parameters:
Name Type Description
property Object

An object which initializes this component. Refer to the details in caph.ui.base.component.Rating constructor.

Since:
  • 2.0.0
Example
var rating = new caph.stripe.ui.component.Rating({
     position: [125, 120, 0],
     rating: 1,
     on: {
         change: function(message) {
             console.log(message.detail);
         }
     }
 });
 

Extends

  • caph.ui.base.component.Rating

Methods

setOption(property)

Sets this component properties. The default class name is "caph-stripe-rating".

Parameters:
Name Type Description
property Object

Refer to the details in caph.ui.base.component.Rating#setOption.

Since:
  • 2.0.0
Example
var rating = new caph.stripe.ui.component.Rating({
     position: [125, 120, 0]
 });
 
 rating.setOption({
     className: 'caph-stripe-rating'
 });