katoikia-app/web-ui/web-react/node_modules/primereact/slidemenu/slidemenu.d.ts

31 lines
928 B
TypeScript

import * as React from 'react';
import { MenuItem } from '../menuitem';
import { CSSTransitionProps } from '../csstransition';
type SlideMenuAppendToType = 'self' | HTMLElement | undefined | null;
export interface SlideMenuProps {
id?: string;
model?: MenuItem[];
popup?: boolean;
style?: object;
className?: string;
easing?: string;
effectDuration?: number;
backLabel?: string;
menuWidth?: number;
viewportHeight?: number;
autoZIndex?: boolean;
baseZIndex?: number;
appendTo?: SlideMenuAppendToType;
transitionOptions?: CSSTransitionProps;
onShow?(e: React.SyntheticEvent): void;
onHide?(e: React.SyntheticEvent): void;
}
export declare class SlideMenu extends React.Component<SlideMenuProps, any> {
public show(event: React.SyntheticEvent): void;
public hide(event: React.SyntheticEvent): void;
public toggle(event: React.SyntheticEvent): void;
}