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

31 lines
928 B
TypeScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
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;
}