Added comments

This commit is contained in:
Matthew James
2018-03-02 22:32:45 +00:00
parent c34bcf86c7
commit 3f1fafbac6
+5
View File
@@ -7,10 +7,15 @@
import * as React from "react";
interface ReactResizeDetectorProps extends React.Props<ReactResizeDetector> {
/** Function that will be invoked with width and height arguments */
onResize: (width: number, height: number) => void;
/** Trigger onResize on height change. Default: false */
handleHeight?: boolean;
/** Trigger onResize on width change. Default: false */
handleWidth?: boolean;
/** Do not trigger onResize when a component mounts. Default: false */
skipOnMount?: boolean;
/** Id of the element we want to observe. If none provided, parentElement of the component will be used. Default: "" */
resizableElementId?: string;
}