Multiselect two-column transfer widget with Twitter bootstrap theme

血红的双手。 提交于 2019-12-03 12:25:41

问题


I am looking for a multi-select jquery based two-column transfer widget having a look and feel compatible with twitter bootstrap. Typically transfer select widgets have two adjacent columns where the user moves his selections from one column to the other in both directions. I've searched really hard but couldn't find anything remotely close to my needs. Can anybody suggest something (short of writing one from scratch). Thanks.


回答1:


I decided finally to write my own from scratch. The source code can be found here. The following screenshot illustrates the look and feel of the widget:




回答2:


The widget that user698585 wrote is 99% of the way there, and is a great widget, but there are some bugs in it, namely:

  1. The widget causes the webpage to jump back to the top whenever you move values between the two columns. This is an issue if you have to scroll down to the widget.
  2. The widget doesn't support tag values with spaces or ampersands in them.
  3. There isn't an exposed method to initialize the right column with values from the left, so if you're using the widget to store selected values in a database, there isn't a way to initialize the widget with those selections when the user returns to the page later on.

I've notified the author of the issues and provided sample code fixes, but in the meantime, if you've run into these issues, you can find a fixed fork of the widget here.

Thanks, user698585 for all your hard work!




回答3:


This is not a two-columns widget but has the same functionality. It's also a little prettier in my opinion:

http://davidstutz.github.io/bootstrap-multiselect/




回答4:


You can try multiselect plugin multiselect both sides have search functionality



来源:https://stackoverflow.com/questions/11165884/multiselect-two-column-transfer-widget-with-twitter-bootstrap-theme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!