https://github.com/nighttrax/jquery-asortable
Sortable plugin for absolutely positioned items
https://github.com/nighttrax/jquery-asortable
Last synced: 3 months ago
JSON representation
Sortable plugin for absolutely positioned items
- Host: GitHub
- URL: https://github.com/nighttrax/jquery-asortable
- Owner: NiGhTTraX
- License: gpl-3.0
- Created: 2014-01-09T18:18:51.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T09:03:28.000Z (over 7 years ago)
- Last Synced: 2025-03-17T16:17:45.487Z (7 months ago)
- Language: JavaScript
- Size: 191 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
jquery-asortable
================asortable is a [jQuery UI](http://www.jqueryui.com) plugin that extends the
normal sortable plugin and allows you to use it on absolutely positioned items.Usage
-----Include ```jquery-asortable.js``` on your page, along with
[jQuery](http://www.jquery.com) and [jQuery UI](http://www.jqueryui.com), and
use it like you would use the normal sortable plugin.```javascript
$("#asortable").asortable();
```Since asortable extends the sortable plugin, you can pass in the same options.
Building
--------asortable uses the [Grunt](https://github.com/gruntjs/grunt) build system. To
build asortable, you must have [node.js](https://github.com/joyent/node)
installed and then run the following commands:```bash
# Install the Grunt CLI.
npm install -g grunt-cli# Clone the repository.
git clone git@github.com:NiGhTTraX/jquery-asortable.git
cd jquery-asortable# Install node module dependencies.
npm install# Run the build task.
grunt
```If all went well, you will find a minified version of the plugin in the
```build/``` folder.Testing
-------Run ```grunt test``` to run the tests in
[PhantomJS](https://github.com/ariya/phantomjs) or open ```tests/index.html```
to run them in your browser. Tests are written using the
[QUnit](http://www.qunitjs.com/) framework and the [jQuery Event Unit Testing
Helpers](https://github.com/jquery/jquery-simulate).To enable coverage, place the ```resources/``` and ```tests/``` folders in your
webserver and run the tests from there with the coverage option in QUnit checked
(running coverage locally will throw a cross-domain error). Coverage is done
using [blanket.js](http://www.blanketjs.org).