From 542f54d77d812a44b85534150a4f1b502de2be39 Mon Sep 17 00:00:00 2001 From: Max Vyznyuk Date: Mon, 22 Feb 2016 11:35:36 +0200 Subject: [PATCH 1/2] Added a few more events to Dialog's overlay --- components/dialog/Dialog.jsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/components/dialog/Dialog.jsx b/components/dialog/Dialog.jsx index 0121e665..a2dd644c 100644 --- a/components/dialog/Dialog.jsx +++ b/components/dialog/Dialog.jsx @@ -15,7 +15,13 @@ const Dialog = (props) => { }, props.className); return ( - +
{props.title ?
{props.title}
: null} @@ -35,6 +41,9 @@ Dialog.propTypes = { children: React.PropTypes.node, className: React.PropTypes.string, onOverlayClick: React.PropTypes.func, + onOverlayMouseDown: React.PropTypes.func, + onOverlayMouseUp: React.PropTypes.func, + onOverlayMouseMove: React.PropTypes.func, title: React.PropTypes.string, type: React.PropTypes.string }; From 3a3dea665c1b30bce16e11192272258d3e86c26d Mon Sep 17 00:00:00 2001 From: Max Vyznyuk Date: Sat, 5 Mar 2016 12:24:03 +0200 Subject: [PATCH 2/2] Update Dialog's documentation. --- components/dialog/readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/dialog/readme.md b/components/dialog/readme.md index 51f28743..6d569622 100644 --- a/components/dialog/readme.md +++ b/components/dialog/readme.md @@ -41,5 +41,8 @@ class DialogTest extends React.Component { | `actions` | `Array` | `[]` | A array of objects representing the buttons for the dialog navigation area. The properties will be transferred to the buttons.| | `className` | `String` | `''` | Sets a class to give customized styles to the dialog.| | `onOverlayClick` | `Function` | | Callback to be invoked when the dialog overlay is clicked.| +| `onOverlayMouseDown` | `Function` | | Callback called when the mouse button is pressed on the overlay. | +| `onOverlayMouseUp` | `Function` | | Callback called when the mouse button is released over the overlay. | +| `onOverlayMouseMove` | `Function` | | Callback called when the mouse is moving over the overlay. | | `title` | `String` | | The text string to use as standar title of the dialog.| | `type` | `String` | `normal` | Used to determine the size of the dialog. It can be `small`, `normal` or `large`. |