Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

request to support ordering / sorting match array #209

Closed
btmurrell opened this issue Sep 22, 2014 · 8 comments
Closed

request to support ordering / sorting match array #209

btmurrell opened this issue Sep 22, 2014 · 8 comments

Comments

@btmurrell
Copy link

I have a need, but don't see anyone else talking about it. I need to provide the ability to reorder the selected items in my multi-select set. current behavior is they are in the order selected by the user.

i would like to enhance the ui-select directive to allow drag & drop reordering of selected items. i am considering a creating a pull with an implementation of one of the angular draggable directives (see below) to augment ui-select.

before i embark on my effort, i wanted to ask the community if anyone has this on the roadmap, or if anyone thinks one of the existing directives would be better or worse for this functionality.

http://codef0rmer.github.io/angular-dragdrop/#/
http://ngmodules.org/modules/ngDraggable
http://www.directiv.es/Angular-DragDrop

thanks in advance for any solicited comments, advice, warnings, etc.

@mark-zacharias
Copy link

+1

1 similar comment
@kitemao
Copy link

kitemao commented Dec 23, 2014

+1

@pgrm
Copy link

pgrm commented Jan 5, 2015

I'm going to use ui-select (or select2) in my angular JS application and also need drag&drop support. Did you have any luck with it so far?

@btmurrell
Copy link
Author

hi peter,

no, they have not done anything (i see "ordering" on their roadmap), and i
have not either as it was not a pressing requirement for my project (we get
around currently be removing and re-adding to affect order). that sucks,
but we have small lists right now, so my users were amenable.

sorry no productive news to give you... :-/

brian

On Mon, Jan 5, 2015 at 10:55 AM, Peter Grman [email protected]
wrote:

I'm going to use ui-select (or select2) in my angular JS application and
also need drag&drop support. Did you have any luck with it so far?


Reply to this email directly or view it on GitHub
#209 (comment)
.

@amcdnl
Copy link
Contributor

amcdnl commented Jan 6, 2015

@btmurrell Ya, I'd like this feature too but it really should be a plugin on top of ui-select so I dont think it would ever make it in this project.

@pgrm
Copy link

pgrm commented Mar 5, 2015

I don't know when and by whom it was added, but there is the option sortable="true" which enables exactly this feature. The documentation is missing, but when you download the code and run the examples, it's shown in demo-multi-select.html

I guess we can close this now.

@cmlenz
Copy link
Contributor

cmlenz commented Mar 5, 2015

For the record, this feature was added in 0.10 and was contributed by @homerjam in #651. I agree that this issue should be closed now.

@stevematyas
Copy link

It would be really helpful if someone could provide some documentation for the "sortable" feature. I'm still trying to figure out why the ng-model is not updated (modelValue) after ordering selected options via form control while, the viewValue has been reordered. Hope I'm explaining this correctly. See #974.

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

No branches or pull requests

8 participants