From 221bb3354bbd5c6a4f8464a4f41fbb61358fb45b Mon Sep 17 00:00:00 2001 From: Guten Ye Date: Tue, 13 Oct 2015 13:42:28 +0800 Subject: [PATCH] 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 55f2275..b259181 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 0000000..dc93d65 --- /dev/null +++ b/Sortable.html @@ -0,0 +1,139 @@ + + + + + + + diff --git a/bower.json b/bower.json index fae6f7a..c934c0e 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", + } }