Skip to content

Commit bf0f384

Browse files
committed
Updating example
1 parent 464e74e commit bf0f384

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

example/main.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ var App = React.createClass({
4242
onStop={this.handleStop}>
4343
<div className="box">I can only be dragged vertically</div>
4444
</Draggable>
45+
<Draggable
46+
handle="strong"
47+
onStart={this.handleStart}
48+
onDrag={this.handleDrag}
49+
onStop={this.handleStop}>
50+
<div className="box">
51+
<strong>Handle</strong>
52+
<div>You must click my handle to drag me</div>
53+
</div>
54+
</Draggable>
4555
</div>
4656
);
4757
}

0 commit comments

Comments
 (0)