28 lines
779 B
TypeScript
28 lines
779 B
TypeScript
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> { }
|