askmethat-rating
Version:
Simple plugin providing to use fonts as rating
45 lines (44 loc) • 1.06 kB
TypeScript
export declare enum AskmethatRatingPopoverDirection {
top = 0,
bottom = 1,
}
export interface AskmethatRatingPopoverOptions {
/**
* Color used by the font & progress bar inside popover
*/
color: string;
/**
* fontClass used by the rating element inside popover
*/
fontClass: string;
/**
* Display popover at bottom or top
*/
direction?: AskmethatRatingPopoverDirection;
/**
* Array of percentage to display
*/
values: number[];
}
export declare class AskmethatRatingPopover {
private _options;
/**
* @function get the default option for the rating
*
* @return options based on @type AskmethatRatingOptions
*/
/**
* @function set the default option for the rating
*
* @return options based on @type AskmethatRatingOptions
*/
options: AskmethatRatingPopoverOptions;
/**
*
*/
constructor(options: AskmethatRatingPopoverOptions);
/**
* Return a list of elements
*/
render(): HTMLUListElement;
}