11HTML5 Drag and Drop for Dart
22================
33
4- Helper library to simplify ** Native HTML5 Drag and Drop** in Dart.
4+ Helper library to simplify ** HTML5 Drag and Drop** in Dart.
55
66## Features ##
77* Make any HTML Element ` draggable ` .
88* Create ` dropzone ` s and connect them with ` draggable ` s.
9- * ` Sortable ` (similar to jQuery UI Sortable).
10- * Uses fast native HTML5 Drag and Drop of the browser.
9+ * Rearrange elements with ` sortable ` (similar to jQuery UI Sortable).
1110* Same functionality and API for IE9+, Firefox, Chrome and Safari.
11+ * Uses fast native HTML5 Drag and Drop of the browser whenever possible.
12+ * For browsers that do not support some features, the behaviour is emulated.
13+ This is the case for IE9 and partly for IE10 (when custom drag images are
14+ used).
1215
1316## Demo ##
1417See [ HTML5 Drag and Drop in action] ( http://edu.makery.ch/projects/dart-html5-drag-and-drop ) (with code examples).
@@ -24,17 +27,9 @@ Add the folowing to your **pubspec.yaml** and run **pub install**
2427 html5_dnd: any
2528```
2629
27- ### 2. Add Polyfill JavaScript ###
28- To make HTML5 Drag and Drop work in Internet Explorer include the following
29- JavaScript file inside the ` <head> ` of your application's HTML like so:
30- ``` html
31- <script type =" text/javascript" src =" packages/html5_dnd/dnd.polyfill.js" ></script >
32- ```
33-
34- ### 3. Import ###
30+ ### 2. Import ###
3531Import the ` html5_dnd ` library in your Dart code. If your using the Sortable
36- functionality, also
37- add ` html5_sortable ` .
32+ functionality, also add ` html5_sortable ` .
3833
3934``` dart
4035import 'package:html5_dnd/html5_dnd.dart';
@@ -43,9 +38,10 @@ import 'package:html5_dnd/html5_sortable.dart';
4338// ...
4439```
4540
46- ### 4 . Use it ###
41+ ### 3 . Use it ###
4742See the demo page above or the ` example ` directory to see how to use it. There
48- are also plenty of Dart Doc comments in the code for some additional details.
43+ are also plenty of comments in the code if you're interested in some finer
44+ details.
4945
5046
5147## Thanks and Contributions ##
0 commit comments