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

28 lines
779 B
TypeScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
import * as React from 'react';
import { MenuItem } from '../menuitem';
type DockHeaderType = React.ReactNode | ((options: DockHeaderTemplateOptions) => React.ReactNode);
type DockFooterType = React.ReactNode | ((options: DockFooterTemplateOptions) => React.ReactNode);
type DockPositionType = 'top' | 'bottom' | 'left' | 'right';
interface DockHeaderTemplateOptions {
props: DockProps;
}
interface DockFooterTemplateOptions extends DockHeaderTemplateOptions {}
export interface DockProps {
id?: string;
style?: object;
className?: string;
model?: MenuItem[];
position?: DockPositionType;
magnification?: boolean;
header?: DockHeaderType;
footer?: DockFooterType;
}
export declare class Dock extends React.Component<DockProps, any> { }