@docsvision/webclient
Version:
Type definitions for DocsVision WebClient scripts and extensions.
22 lines (21 loc) • 730 B
TypeScript
import React from "react";
export interface IDroppableProps {
/** React.ReactNode that repersents content */
children?: React.ReactNode;
/** Custom class for Droppable */
className?: string;
/** Identificator */
id: string;
/** on drop event handler */
onDrop?: (e: any) => void;
/** container where to append draggable */
insertContainer?: HTMLElement;
}
export declare class Droppable extends React.Component<IDroppableProps, undefined> {
dropContainer: HTMLElement;
constructor(props: IDroppableProps, state: undefined);
onDrop: (e: any) => void;
onDragOver: (e: any) => void;
render(): JSX.Element;
protected attachDropContainer(elem: HTMLInputElement): void;
}