UNPKG

ngx-stars-rating

Version:

## Overview Ngx Stars Rating is a straightforward Angular module designed for Angular 14 and above. It offers customizable star icons using Material Icons, Antd Icons, and other options.

28 lines (27 loc) 1.1 kB
import { OnInit, TemplateRef } from '@angular/core'; import { IRatingOptions } from './models'; import * as i0 from "@angular/core"; export declare class NgxStarsRatingComponent implements OnInit { private _options; private _rate; set options($event: IRatingOptions); set rate($event: number); starTemplate: TemplateRef<any>; private _onRateEvent; isHovering: boolean; starItems: number[]; activeStarIndex: number; halfStarIndex: number; starFillPercentage: number; hoveringStarIndex: number; get options(): IRatingOptions; constructor(); ngOnInit(): void; private _setStarItems; onStarHover(starIndex: number): void; onMouseLeave(): void; onClickRating(rateIndex: number): void; private _calculateStartIndexes; static ɵfac: i0.ɵɵFactoryDeclaration<NgxStarsRatingComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxStarsRatingComponent, "ngx-stars-rating", never, { "options": "options"; "rate": "rate"; "starTemplate": "starTemplate"; }, { "_onRateEvent": "onRate"; }, never, never, false>; }