Opened 12 years ago
Closed 8 years ago
#7121 closed feature (wontfix)
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.
Change History (5)
comment:1 Changed 10 years ago by
Milestone: | 1.9.0 → 2.0.0 |
---|
comment:2 Changed 10 years ago by
Status: | new → open |
---|
comment:3 Changed 10 years ago by
Summary: | Feature request: Make this Sortable placeholder hack part of the API → Sortable: Document and support the object version of the placeholder option |
---|
comment:5 Changed 8 years ago by
Resolution: | → wontfix |
---|---|
Status: | open → closed |
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.
Consider for redesign.