Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
145
rated 0 times [  150] [ 5]  / answers: 1 / hits: 20063  / 12 Years ago, tue, november 13, 2012, 12:00:00

Background



I am looking for a jQuery- or JavaScript-based combobox shuttle widget that allows the user to filter the source list. The source list is a combobox (on the left) and the destination list is a second combobox (on the right).



Mockup



The widget should resemble:





mockup





An existing jQuery widget:



Bootstrap



Usage



The user can:




  1. Type a regex to filter the source list (e.g., Toy.*).


    • The widget hides all items that do not match the filter expression.


  2. Select one or more items in the source list (using click, control-click, and shift-click selections).

  3. Click the >> to transfer the items from the source list to the destination list.

  4. Clear the filter to reveal the full source list.



Technical



Ideally, the comboboxes would use a multiselect HTML combobox and the markup would be trivial:



<select name=sourceList id=sourceList size=20 multiple=multiple>
<option value=1>Toyota</option>
<option value=2>Mitsubishi</option>
<option value=3>Nintendo</option>
<option value=4>Samsung</option>
<option value=5>Bank of Kyoto</option>
</select>

<select name=destinationList id=destinationList size=20 multiple=multiple>
<option value=6>Mazda</option>
<option value=7>Fuji</option>
<option value=8>Honda</option>
</select>

<script>
$('#sourceList').shuttle();
</script>


Findings



These are close:





These are nearly perfect:





I'm looking to batch up the assignment of categories for 3000 - 5000 items and thought this would be a quick way to accomplish such a feat. (The Japanese company names are purely fictional; in reality, the names will typically have a word or phrase in common.)



Question



What is a free and open source widget (jQuery or pure JavaScript) that meets these requirements?



Related



Related links:




More From » jquery

 Answers
15

A nice jquery/bootstrap plugin (multiple select, two pane, filter with regex):



Bootstrap Dual Listbox: http://www.virtuosoft.eu/code/bootstrap-duallistbox/


[#82007] Monday, November 12, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
chase

Total Points: 78
Total Questions: 106
Total Answers: 93

Location: Comoros
Member since Tue, Mar 14, 2023
1 Year ago
chase questions
Thu, Mar 31, 22, 00:00, 2 Years ago
Thu, Jul 1, 21, 00:00, 3 Years ago
Sat, Dec 12, 20, 00:00, 4 Years ago
Mon, Sep 14, 20, 00:00, 4 Years ago
;