kornelski / slip

Slip.js — UI library for manipulating lists via swipe and drag gestures
BSD 2-Clause "Simplified" License
2.44k stars 213 forks source link

Support Reorder elements in a grid:http://jqueryui.com/sortable/#display-grid #30

Open oacnqqcom opened 10 years ago

oacnqqcom commented 10 years ago

Hi kornel,

first of all, congratz to slip.js - works really nice.

I was wondering though if there's a way to make grid rows drag & droppable, too?

But the way, so far I've found this:http://jqueryui.com/sortable/#display-grid To arrange sortable items as a grid

How to achieve this effect on Slip.js?

thx in advance

kornelski commented 10 years ago

It's not possible out of the box. You would have to rewrite how slip.js finds elements before/after the current one.

https://github.com/pornel/slip/blob/a4145da90803538c546136470140f9c280864c54/slip.js#L374 etc

oacnqqcom commented 10 years ago

thanks!

Andrinoid commented 8 years ago

Nice library!

This might be similar question but is it possible to change the axis to x? Similar to jquery.ui where you can set axis: 'x'

carter-thaxton commented 8 years ago

We love pull requests!