UNPKG

@salla.sa/twilight-components

Version:
42 lines (41 loc) 881 B
export declare class SallaRatingStars { translationsLoaded: boolean; labels: string[]; reviewLabel: string; selectedStar: number; /** * Sets input name. */ name: string; /** * Sets the height and width of the component. Defaults to medium. */ size: "large" | "medium" | "small" | "mini"; /** * The rating value. */ value: number; /** * Number of reviews to display. */ reviews: number; /** * Show the description label. */ withLabel: boolean; /** * Allows the rating to be editable. */ editable: boolean; host: HTMLElement; private starsElem; private reviewsElement; componentWillLoad(): Promise<void>; protected initiateRating(): void; private handleRating; triggerRatingProgrammatically(index: number): void; private highlightSelectedStars; private createStars; render(): any; componentDidLoad(): void; }