From 221bb3354bbd5c6a4f8464a4f41fbb61358fb45b Mon Sep 17 00:00:00 2001 From: Guten Ye Date: Tue, 13 Oct 2015 13:42:28 +0800 Subject: [PATCH 1/2] Add Polymer Support --- README.md | 14 ++++- Sortable.html | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++ bower.json | 8 ++- 3 files changed, 158 insertions(+), 3 deletions(-) create mode 100644 Sortable.html diff --git a/README.md b/README.md index 55f227597..b2591814f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Demo: http://rubaxa.github.io/Sortable/ * Supports drag handles *and selectable text* (better than voidberg's html5sortable) * Smart auto-scrolling * Built using native HTML5 drag and drop API - * Supports [Meteor](meteor/README.md), [AngularJS](#ng) and [React](#react) + * Supports [Meteor](meteor/README.md), [AngularJS](#ng), [React](#react) and [Polymer](#polymer) * Supports any CSS library, e.g. [Bootstrap](#bs) * Simple API * [CDN](#cdn) @@ -472,6 +472,18 @@ Other attributes are: --- + +### Support Polymer +```html + + + + + + +``` ### Method diff --git a/Sortable.html b/Sortable.html new file mode 100644 index 000000000..dc93d654c --- /dev/null +++ b/Sortable.html @@ -0,0 +1,139 @@ + + + + + + + diff --git a/bower.json b/bower.json index fae6f7a22..c934c0ec2 100644 --- a/bower.json +++ b/bower.json @@ -19,7 +19,8 @@ "drag", "and", "drop", - "dnd" + "dnd", + "web-components" ], "license": "MIT", "ignore": [ @@ -27,5 +28,8 @@ "bower_components", "test", "tests" - ] + ], + "dependencies": { + "polymer": "Polymer/polymer#~1.1.4", + } } From 82a0c763ff4c4615ab919016c63c3124ba9f91cc Mon Sep 17 00:00:00 2001 From: Guten Ye Date: Tue, 13 Oct 2015 13:45:15 +0800 Subject: [PATCH 2/2] update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2591814f..6184f9aa6 100644 --- a/README.md +++ b/README.md @@ -476,9 +476,9 @@ Other attributes are: ### Support Polymer ```html - + - +