Skip to content

Commit e19644a

Browse files
committed
Updating example
1 parent ec6da80 commit e19644a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

example/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@
55
<title>React Draggable</title>
66
<link rel="stylesheet" type="text/css" href="../lib/styles.css"/>
77
<style type="text/css">
8+
body {
9+
color: #222;
10+
font-family: "Helvetica Neue", sans-serif;
11+
font-weight: 200;
12+
margin: 0 50px;
13+
}
14+
815
.box {
916
background: #fff;
1017
border: 1px solid #333;
18+
display: inline-block;
1119
width: 150px;
1220
height: 150px;
1321
margin: 10px;

example/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var App = React.createClass({
88
},
99

1010
handleDrag: function (e, ui) {
11-
console.log(ui.position);
11+
console.log('drag');
1212
},
1313

1414
handleStop: function () {
@@ -18,6 +18,10 @@ var App = React.createClass({
1818
render: function () {
1919
return (
2020
<div>
21+
<h1>React Draggable</h1>
22+
<p>
23+
<a href="https://github.com/mzabriskie/react-draggable/blob/master/example/main.js">Demo Source</a>
24+
</p>
2125
<Draggable
2226
onStart={this.handleStart}
2327
onDrag={this.handleDrag}

0 commit comments

Comments
 (0)