26 lines
776 B
TypeScript
26 lines
776 B
TypeScript
import * as React from 'react';
|
|
import { MenuItem } from '../menuitem';
|
|
import { CSSTransitionProps } from '../csstransition';
|
|
|
|
type MenuAppendToType = 'self' | HTMLElement | undefined | null;
|
|
|
|
export interface MenuProps {
|
|
id?: string;
|
|
model?: MenuItem[];
|
|
popup?: boolean;
|
|
style?: object;
|
|
className?: string;
|
|
autoZIndex?: boolean;
|
|
baseZIndex?: number;
|
|
appendTo?: MenuAppendToType;
|
|
transitionOptions?: CSSTransitionProps;
|
|
onShow?(e: React.SyntheticEvent): void;
|
|
onHide?(e: React.SyntheticEvent): void;
|
|
}
|
|
|
|
export declare class Menu extends React.Component<MenuProps, any> {
|
|
public toggle(event: React.SyntheticEvent): void;
|
|
public show(event: React.SyntheticEvent): void;
|
|
public hide(event: React.SyntheticEvent): void;
|
|
}
|