Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 943 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 943 Bytes

meteor-jquery-ui-sortable

Sortable is a jQuery UI behaviour for interactively drag-reordering table rows. This is from jQueryUI 1.10.3.

Why separate?

We ran into some trouble using the simple port of jQueryUI because of the known CSS conflicts with Bootstrap. Rather than add another package to solve the problem of two packages fighting, we custom-packaged only the behavioural part of jQueryUI we needed and sidestepped the jQueryUI theming entirely.

How to install

  1. npm install -g meteorite (if not already installed)
  2. mrt add jquery-ui-sortable
  3. For the simplest invocation, have a <table> with a multiple-row <tbody> in a template, and call $('tbody').sortable() in its .rendered() event.

Documentation

http://api.jqueryui.com/sortable/