sliptree / bootstrap-tokenfield

A jQuery tag/token input plugin for Twitter's Bootstrap, by the guys from Sliptree
http://sliptree.github.io/bootstrap-tokenfield/
Other
859 stars 238 forks source link

Drag/drop to reorder tokens #59

Open EntropyAu opened 10 years ago

EntropyAu commented 10 years ago

Thanks for the awesome work! It would be great if it was possible to reorder the tokens by dragging and dropping them within the field...

ivanpetrovic commented 10 years ago

+1

Grigore147 commented 10 years ago

+1 for this.

ragulka commented 10 years ago

Can you guys give me an example use-case where this would be useful?

rmccue commented 10 years ago

Can you guys give me an example use-case where this would be useful?

For example, using the tokens to represent placeholder text, ala the OS X date format picker.

Not really an autocomplete scenario, but this lib would work nicely with that style. (And I'm hoping to be able to use it for a similar use case.)

flanderboy commented 9 years ago

+1

m0dE commented 9 years ago

I applied .sortable() to .token, and it works just fine.

martinschaer commented 9 years ago

Can you guys give me an example use-case where this would be useful?

@ragulka I'm using tokenfield with typeahead and bloodhound. My use case is the following:

  1. the user has access to a CMS where he enters staff members into the tokenfield to assign them to a department, and saves them.
  2. then the user realizes that they have been entered in the wrong order, because they have to appear in the web site in a specific order.
  3. the user has to delete and enter the staff members again.

Step 3 could be much easier if the user could reorder the staff members by dragging and dropping them.

David-Desmaisons commented 9 years ago

I just created a pull-request #236 with solution for this feature.