UNPKG

smart-webcomponents-react

Version:

[![Price](https://img.shields.io/badge/price-COMMERCIAL-00JS8f7.svg)](https://jqwidgets.com/license/)

75 lines (74 loc) 2.21 kB
import React from "react"; import { MenuItemProperties } from "./../index"; export { MenuItemProperties } from "./../index"; export {} from './../index'; declare let Smart: any; export { Smart }; export interface MenuItemProps extends MenuItemProperties { className?: string; style?: React.CSSProperties; onCreate?: ((event?: Event) => void) | undefined; onReady?: ((event?: Event) => void) | undefined; } /** Defines a menu item. */ export declare class MenuItem extends React.Component<React.HTMLAttributes<Element> & MenuItemProps, any> { private _id; private nativeElement; private componentRef; get id(): string; /** * Property type: boolean */ get checked(): boolean; set checked(value: boolean); /** Enables or disables element. * Property type: boolean */ get disabled(): boolean; set disabled(value: boolean); /** * Property type: any */ get label(): any; set label(value: any); /** * Property type: number */ get level(): number; set level(value: number); /** * Property type: boolean */ get separator(): boolean; set separator(value: boolean); /** * Property type: string */ get shortcut(): string; set shortcut(value: string); /** * Property type: any */ get value(): any; set value(value: any); get properties(): string[]; /** 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[]; 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 MenuItem;