Opened 10 years ago

Closed 10 years ago

#9397 closed feature (plugin)

Add sortable option to show original position

Reported by: mikerobinson Owned by:
Priority: minor Milestone: none
Component: ui.sortable Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

I think it would be useful to add an option to highlight the original location of an element in a sortable list. Something similar to http://jqueryui.com/sortable/#placeholder but in reverse; instead of highlighting the target, it would highlight the original location. This would allow the user to effectively "cancel" dragging without having to worry about remembering the exact position the element was originally in. I understand this would add an additional list item to the list, but if the highlight were also stylable, the user could reduce it to take up minimal space if that is somehow a concern.

Change History (1)

comment:1 Changed 10 years ago by tj.vantoll

Resolution: plugin
Status: newclosed

Hi mikerobinson,

Thanks for taking the time to contribute to the jQuery UI project.

IMO this is better handled as an extension, because:

#1) It's an edge case, and #2) It's not too hard to build with the current API: http://jsfiddle.net/tj_vantoll/AnWff/

If you have any specific recommendations for how the widget could be made more extensible let us know. We're not changing the API of the interaction widgets until after our rewrite that's currently set for 1.13.

Note: See TracTickets for help on using tickets.