import { ElementRef, OnInit } from '@angular/core'; import { CfCoreComponent } from '../core/core.component'; import { RatingModel } from '../../models/rating/rating.model'; import { RatingStylingModel } from '../../models/rating/rating-styling.model'; /** *
Rating component which has vertical/horizontal icons, icon order changing and other basic functionality.
*Example of using Menu:
***/ export declare class CfRatingComponent extends CfCoreComponent implements OnInit { elementRef: ElementRef; /** * It is an RatingModel object with options to be rendered into component template */ cfRating: RatingModel; /** * It is an array to be filled with items according to MAX property */ cfItems: number[]; /** * It is an attribute [properties] of directive cf-rating which take RatingModel object. *<cf-rating [properties]="myRating" [styling]="myRatingStyles"></cf-rating>*
Example of Rating json object:
*{
* label: 'Rating label',
* icon: 'stars',
* value: 1,
* max: 5,
* countFromEnd: false,
* iconsVertical: false
* disabled: false
* }
*