Skip to content

[feature] Request: A Function That Can Be Called to Programmatically Change The Order of The List #2434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
WoofGrrrr opened this issue Mar 29, 2025 · 0 comments

Comments

@WoofGrrrr
Copy link

WoofGrrrr commented Mar 29, 2025

I would like to suggest that a function be added that can be used to Programmatically change the order of a Sortable list.

It might take two simple parameters: a From index and a To index. An optional third parameter might indicate whether the move calls any of the callback functions or not.

Like a few others, I have been looking for a way to have "locked" rows in the list stay locked. Right now, for example, if you move another row above or even onto a locked row, the locked row moves down passively. The same things happens if you move a row that is above the locked row below it, the locked row moves up.

I was thinking I could use this function to change this behavior.

Or we could settle for manipulating things in the DOM somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant