UNPKG

@sreyaj/ng-star-rating

Version:

A Simple and Customizable SVG based Star Rating Component For Angular

18 lines (17 loc) 501 B
import { OnInit, EventEmitter } from '@angular/core'; export declare class StarRatingComponent implements OnInit { total: number; rating: number; readonly: boolean; size: string; type: 'filled' | 'hollow'; filledColor: string; emptyColor: string; rated: EventEmitter<number>; ratings: number[]; constructor(); ngOnInit(): void; getRatingColor(index: number): string; getIcon(index: number): string; rate(index: number): void; }