33 lines
803 B
TypeScript
33 lines
803 B
TypeScript
|
import * as React from 'react';
|
||
|
|
||
|
type SplitterLayoutType = 'vertical' | 'horizontal';
|
||
|
|
||
|
type SplitterStateStorageType = 'session' | 'local';
|
||
|
|
||
|
interface SplitterResizeEndParams {
|
||
|
originalEvent: React.SyntheticEvent;
|
||
|
sizes: number[];
|
||
|
}
|
||
|
|
||
|
interface SplitterPanelProps {
|
||
|
size?: number;
|
||
|
minSize?: number;
|
||
|
style?: object;
|
||
|
className?: string;
|
||
|
}
|
||
|
|
||
|
export declare class SplitterPanel extends React.Component<SplitterPanelProps, any> { }
|
||
|
|
||
|
export interface SplitterProps {
|
||
|
id?: string;
|
||
|
className?: string;
|
||
|
style?: object;
|
||
|
layout?: SplitterLayoutType;
|
||
|
gutterSize?: number;
|
||
|
stateKey?: string;
|
||
|
stateStorage?: SplitterStateStorageType;
|
||
|
onResizeEnd?(e: SplitterResizeEndParams): void;
|
||
|
}
|
||
|
|
||
|
export declare class Splitter extends React.Component<SplitterProps, any> { }
|