https://github.com/vivify-ideas/jquery-ui-sortable
https://github.com/vivify-ideas/jquery-ui-sortable
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vivify-ideas/jquery-ui-sortable
- Owner: Vivify-Ideas
- Created: 2022-08-17T09:35:52.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-17T09:36:32.000Z (over 2 years ago)
- Last Synced: 2025-01-04T06:28:06.511Z (4 months ago)
- Size: 29.3 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
jQuery UI Sortable
========This is a custom, standalone build of jQuery UI that includes the minimum code required to utilize sortables. It includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js and jquery.ui.sortable.js.
Usage
------```html
Sort Item 1
Sort Item 2
Sort Item 3
Sort Item 4
```Call `sortable` on the parent element (`.sortable`) which contains the sorted elements (`.sort-item`). Specify the `axis`, `handle` and the `update` callback.
```javascript
('.sortable').sortable({
items: '.sort-item',
opacity: 0.7,
axis: 'y',
handle: 'i.icon-sort',
update: function() {
var data = $(this).sortable('serialize');
console.log(data)
}
});
```Official Documentation / API
------To see all of the available options and more examples, visit the [official documentation](http://jqueryui.com/sortable/) and the [official API](http://api.jqueryui.com/sortable/).