smart-webcomponents-react
Version:
[](https://jqwidgets.com/license/)
116 lines (115 loc) • 4.46 kB
TypeScript
import React from "react";
import { RatingProperties } from "./../index";
import { Animation } from './../index';
export { RatingProperties } from "./../index";
export { Animation } from './../index';
declare let Smart: any;
export { Smart };
export interface RatingProps extends RatingProperties {
className?: string;
style?: React.CSSProperties;
onChange?: ((event?: Event) => void) | undefined;
onCreate?: ((event?: Event) => void) | undefined;
onReady?: ((event?: Event) => void) | undefined;
}
/**
Rating allows you to input a rating. It is broadly used in applications with reviews.
*/
export declare class Rating extends React.Component<React.HTMLAttributes<Element> & RatingProps, any> {
private _id;
private nativeElement;
private componentRef;
get id(): string;
/** Sets or gets the animation mode. Animation is disabled when the property is set to 'none'
* Property type: Animation | string
*/
get animation(): Animation | string;
set animation(value: Animation | string);
/** Disables the interaction with the element.
* Property type: boolean
*/
get disabled(): boolean;
set disabled(value: boolean);
/** Sets or gets the unlockKey which unlocks the product.
* Property type: string
*/
get unlockKey(): string;
set unlockKey(value: string);
/** Sets or gets the language. Used in conjunction with the property messages.
* Property type: string
*/
get locale(): string;
set locale(value: string);
/** Callback used to customize the format of the messages that are returned from the Localization Module.
* Property type: any
*/
get localizeFormatFunction(): any;
set localizeFormatFunction(value: any);
/** Determines the number of stars that will be displayed.
* Property type: number
*/
get max(): number;
set max(value: number);
/** Sets or gets an object specifying strings used in the element that can be localized. Used in conjunction with the property locale.
* Property type: any
*/
get messages(): any;
set messages(value: any);
/** The name of the element. Used when submiting data inside a Form.
* Property type: string
*/
get name(): string;
set name(value: string);
/** Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
* Property type: boolean
*/
get rightToLeft(): boolean;
set rightToLeft(value: boolean);
/** Determines the theme. Theme defines the look of the element
* Property type: string
*/
get theme(): string;
set theme(value: string);
/** If is set to true, the element cannot be focused.
* Property type: boolean
*/
get unfocusable(): boolean;
set unfocusable(value: boolean);
/** Determines the number of stars that will be marked as active.
* Property type: number
*/
get value(): number;
set value(value: number);
get properties(): string[];
/** This event is triggered when the value of the slider is changed.
* @param event. The custom event. Custom event was created with: event.detail( value, oldValue)
* value - A numeric value indicating the scroll position.
* oldValue - A numeric value indicating the previous scroll position.
*/
onChange?: ((event?: Event) => void) | undefined;
/** This event occurs, when the React component is created.
* @param event. The custom event. */
onCreate?: ((event?: Event) => void) | undefined;
/** This event occurs, when the React component is completely rendered.
* @param event. The custom event. */
onReady?: ((event?: Event) => void) | undefined;
get eventListeners(): string[];
/** Get the value of the rating.
* @returns {number}
*/
getValue(): any;
/** Sets the value of the rating.
* @param {number} value. Sets the value of the rating
*/
setValue(value: number): void;
constructor(props: any);
componentDidRender(initialize: boolean): void;
componentDidMount(): void;
componentDidUpdate(): void;
componentWillUnmount(): void;
render(): React.ReactElement<{
ref: any;
suppressHydrationWarning: boolean;
}, string | React.JSXElementConstructor<any>>;
}
export default Rating;