-
Notifications
You must be signed in to change notification settings - Fork 62
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
Implementing Sortable Selected-Items #4
Comments
Yes, even if I've never needed that feature in any project, I can imagine some use cases where it could be requirement. This feature, however, would require some processing with every re-order, as it implies re-indexing the item in the list. With the current implementation, this is not possible (it can be done, but requires one to extend the functionality of the widget. Though, I don't think it can be stable enough to be of general use...) I think I could start a branch to try and implement, and also fix the other single click to select issue (#3), by deactivating animations as they are the root of the problem. |
I have looked at this, and how it could be implemented with the current optimized algorithm and it will prove a greater challenge than just applying "sortable" to the container! There are several issues to take into account :
Because, as described, to be submitted in the user defined order, when sorted, the items need to be moved inside the original What do you think? |
I think I have a solution for this problem that I'll play with during the holidays, or next month (January). It involves having a separate I haven't forgotten about it! Just had a crazy schedule. |
Good news! The dev branch now contains this feature. It is not fully tested, and has a known issue, but should be satisfactory to most use cases right now. I'll push it to master once I'm satisfied with testing, then close this issue. Note that the dev branch has some major code refactoring, but the API has not changed. |
This has now been implemented and is stable enough. |
The thing I like about multiselect-2 is that it doesn't have this bug: michael/multiselect#8
...but, alas, I need to implement Sortable, so that the Selected-items may be re-ordered. Any tips on how this may be done?
The jQueryUI site wasn't helpful: http://jqueryui.com/demos/sortable/
(I have altered the code & CSS to swap left/right sides, since it seemed backward to our standard needs. Perhaps some day, we can build in a toggle setting to support both, complete with switching the arrow icons from the sprite.)
The text was updated successfully, but these errors were encountered: