Skip to main content

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:

I have used the following hack in order to customise the placeholder that Sortable uses:

  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 scottgonzalez comment:1


Changed November 05, 2012 12:31PM UTC by jzaefferer comment:2

status: newopen

Consider for redesign.

Changed March 11, 2013 03:20AM UTC by tj.vantoll comment:3

summary: Feature request: Make this Sortable placeholder hack part of the APISortable: Document and support the object version of the placeholder option

Changed March 11, 2013 03:32AM UTC by tj.vantoll comment:4

Related to #8133.

Changed March 05, 2015 02:09PM UTC by scottgonzalez comment:5

resolution: → wontfix
status: openclosed

We shouldn't support custom APIs like this. The placeholder option should just support better input (#4957) and the updates should be done in response to existing events.