Browse Source

* upd

pull/64/head
RubaXa 10 years ago
parent
commit
7e77434bad
  1. 13
      README.md

13
README.md

@ -19,13 +19,17 @@
```
```js
new Sortable(items);
var el = document.getElementById('items');
new Sortable(el);
```
---
### Options
```js
new Sortable(elem, {
new Sortable(el, {
group: "name",
store: null, // @see Store
handle: ".my-handle", // Restricts sort start click/touch to the specified element
@ -54,6 +58,8 @@ new Sortable(elem, {
});
```
---
### Method
@ -114,6 +120,3 @@ new Sortable(el, {
* closest(el`:HTMLElement`, selector`:String`[, ctx`:HTMLElement`])`:HTMLElement|Null` — for each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree
* toggleClass(el`:HTMLElement`, name`:String`, state`:Boolean`) — add or remove one classes from each element
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/RubaXa/sortable/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Loading…
Cancel
Save