File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments