Opened 6 years ago

Last modified 6 years ago

#15236 new feature

Add "fixed" options.

Reported by: jhorowitz-firedrum Owned by: jhorowitz-firedrum
Priority: minor Milestone: none
Component: ui.sortable Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

Description

Proposed:

The option "fixed.above" is a class whose presence

prevents the sortable item from moving down when another sortable hovers over its top half.

The option "fixed.below" is a class whose presence

prevents the sortable item from moving up when another sortable hovers over its bottom half.

Goal:

Finer-grained control than the current "items" option.

Change History (2)

comment:1 Changed 6 years ago by Scott González

Owner: set to jhorowitz-firedrum
Status: newpending

I don't really understand the goals. Please provide actual use cases.

comment:2 Changed 6 years ago by jhorowitz-firedrum

Status: pendingnew

Please see this jsfiddle for the desired use case, labeled "Locked sorting", compared with the behavior effected by the "items" option. https://jsfiddle.net/gdy1xru2/

Version 1, edited 6 years ago by jhorowitz-firedrum (previous) (next) (diff)
Note: See TracTickets for help on using tickets.