UNPKG

ng-rating-bar

Version:
40 lines (39 loc) 1.57 kB
import { OnInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { FormControl } from '@angular/forms'; import * as i0 from "@angular/core"; interface Styles { fontSize?: string; backgroundColor?: string; margin?: string; padding?: string; } export declare class NgRatingBarComponent implements OnInit, OnChanges { ratingCount: number; colorActive: string; colorDefault: string; disabled: boolean; resetAble: boolean; control?: FormControl<number | null>; styles: Styles; value: number; valueChange: EventEmitter<number>; hoverChange: EventEmitter<number>; symbol: string; numbers: Array<number>; hoverIndex: number; selectedValue: number; halfValue: number; halfIndex: number; isHovered: boolean; constructor(); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; initNumbers(): void; enter(i: number): void; leave(i: number): void; setSelected(i: number): void; calculateHalfValue(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgRatingBarComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgRatingBarComponent, "ng-rating-bar", never, { "ratingCount": "ratingCount"; "colorActive": "colorActive"; "colorDefault": "colorDefault"; "disabled": "disabled"; "resetAble": "resetAble"; "control": "control"; "styles": "styles"; "value": "value"; "symbol": "symbol"; }, { "valueChange": "valueChange"; "hoverChange": "hoverChange"; }, never, never, false>; } export {};