1 |
|
2 |
|
3 | import React from 'react'
|
4 | import {ApDraggable, ApDraggableStyle} from 'apeman-react-draggable'
|
5 |
|
6 | const ExampleComponent = React.createClass({
|
7 | render () {
|
8 | return (
|
9 | <div>
|
10 | <ApDraggableStyle/>
|
11 | <ApDraggable onStart={ () => {
|
12 |
|
13 | } }
|
14 | onMove={ () => {
|
15 |
|
16 | } }
|
17 | onEnd={ () => {
|
18 |
|
19 | } }
|
20 | direction="ALL">
|
21 | <div>Drag me!</div>
|
22 | </ApDraggable>
|
23 | </div>
|
24 | )
|
25 | }
|
26 | })
|