#169 new
Christopher Thomas

Allow a sortable to accept new containers dynamically

Reported by Christopher Thomas | December 23rd, 2009 @ 01:54 PM

One problem I recently come up against is that I wanted to process my HTML structures to dynamically build sortable objects based on the css classes I found in the html.

I have a css style which tells me I want a sortable that will allow DnD between different parts of the page, all with their own css style "groups".

For example. I could have three columns in my page, I want left and right to accept DnD's from each other, but sortables contained in the middle column, to only accept their own sortables, so I can't drag something from the right and drop it into the middle. When I create the sortable object, I might have 20 sortables to create, but from those 20, perhaps 5 of them are ones that I want to drag items from one and drop into the other, but another group of 5 I want their capabilities to do the same, but not drag from the first group and drop into the second group. The problem comes from preprocessing the data structures multiple times.

right now, I have to parse the structures to find out what groups I want to build, second pass would create all the groups.

it's simply a matter of not processing things twice, it's a small request merely to allow me to dynamically build a sortable, then add containers as I find them, rather than after I've found them all and sorted them into groups, it helps the algorithms I need to create be simpler.


No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A JavaScript Library

Shared Ticket Bins

People watching this ticket