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

Support for select2-type tags/multi-select #59

Closed
jasonaden opened this issue Apr 30, 2014 · 8 comments
Closed

Support for select2-type tags/multi-select #59

jasonaden opened this issue Apr 30, 2014 · 8 comments

Comments

@jasonaden
Copy link

Are there plans for supporting tags or multi-select like current select2? Is there a concept/design behind how to implement this? If we move to this directive rather than the select2 port, we will need this functionality. I would like to discuss ideas around it as maybe we could end up helping to get that functionality built.

@WhatFreshHellIsThis
Copy link

+1 for multiselect

@clementoriol
Copy link

+1 !

@mostly-novice
Copy link

+1 please :)

@komakino
Copy link

Hi!

I've started to implement this, but I have some structural concerns.

First of all, the creation of new items has already been implemented by @malexandre and there is an open PR for that. So only the "multiple" feature needs to be implemented.

I've been playing around abit, and I think the biggest decision for the community is the syntax. Here is a proposition:

  <ui-select multiple ng-model="visitedCountries" ng-disabled="disabled">
    <ui-select-chosen placeholder="Select or search countries in the list...">
        {{$item.name}}
    </ui-select-chosen>
    <ui-select-choices repeat="country in countries | filter: $select.search">
        {{country.name}}
    </ui-select-choices>
  </ui-select>

Where the contents of ui-select-chosen will be transcluded into every "tag".

The functionality otherwise should be just like select2. Tokenizing would be nice to.

Since I have some free time now for a couple of days, I'd really like @tkrotoff's and @ProLoser's input on this as soon as possible, and get a discussion going.

@komakino
Copy link

Ok, now I have implemented initial functionality.
For the moment it only works with Select2 theme and only tested in latest stable Chrome.

I'd really appreciate @tkrotoff's and @ProLoser's attention and input when you guys have time.

https://github.com/komakino/ui-select/tree/multiple

@plentz
Copy link

plentz commented Jul 26, 2014

I think this one duplicates #13 and has some work done in #78

@dimirc
Copy link
Contributor

dimirc commented Aug 4, 2014

Related to PR #138

@dimirc
Copy link
Contributor

dimirc commented Sep 9, 2014

Multiselect support added, check #138

@dimirc dimirc closed this as completed Sep 9, 2014
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

7 participants