Search and Top Navigation
#7121 closed feature (wontfix)
Opened March 16, 2011 11:52AM UTC
Closed March 05, 2015 02:09PM UTC
Sortable: Document and support the object version of the placeholder option
Reported by: | Altreus | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.sortable | Version: | 1.8.10 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have used the following hack in order to customise the placeholder that Sortable uses:
$(selector).sortable({ placeholder: { element: function(currentItem) { }, update: function(container,p) { } } });
This hack works in all versions of UI since 1.7.2 - the one I'm using. I got the hack from StackOverflow here:
This is actually extremely useful in a variety of situations and I think it should be officially part of the API. I would suggest tweaks to this: the currentItem, for example, is not the ui.item we get in other functions. So, a bit of tweaking of the interface would be needed, but this is so amazingly useful I think it would be worth it.
Attachments (0)
Change History (5)
Changed October 11, 2012 02:55PM UTC by comment:1
milestone: | 1.9.0 → 2.0.0 |
---|
Changed November 05, 2012 12:31PM UTC by comment:2
status: | new → open |
---|
Consider for redesign.
Changed March 11, 2013 03:20AM UTC by comment:3
summary: | Feature request: Make this Sortable placeholder hack part of the API → Sortable: Document and support the object version of the placeholder option |
---|