Basic example

Dual listbox is a simple and light weight component that makes multi select pretty and easy to use with only javascript. It supports filtering, sorting, programmatic control and a set of events and methods. It converts a regular select element into 2 select boxes with a number of actions that allow you to move items between windows. THis is a very basic example with default configuration.

Add options in config

In the following example we initialize dual listbox on empty select and add options dynamically in component JS configuration. All options are stored in JSON format and added in options config option. Available keys are: name, value and selected in boolean type with true value.

Buttons text

Dual listbox library allows you to customize all button labels, whether you want to change default labels or add localization support. The library includes 4 options for buttons that accept values in plain text or HTML formats: addButtonText, removeButtonText, addAllButtonText, removeAllButtonText. In this example we are using caret icons from our icon set.

Sort items

The list of selected items supports manual ordering, where individual items in select area can be moved up and down on button click. This feature is simple and doesn't support multiple items selection, but in certain use cases it can be handy (e.g. to move important items into visible area and then store the list in cookies).

Hide buttons

You can also hide action buttons individually or all together. Set the following options to false to hide buttons: showAddButton, showAddAllButton, showRemoveButton and showRemoveAllButton. If buttons are hidden, you can move select items from one window to another on double click.

Activity
New notifications
James has completed the task Submit documents from Onboarding list
2 hours ago
Margo has added 4 users to Customer enablement channel
3 hours ago
Subscription #466573 from 10.12.2021 has been cancelled. Refund case #4492 created
4 hours ago
Older notifications
Nick requested your feedback and approval in support request #458
3 days ago
Mike added 1 new file(s) to Product management project
new_contract.pdf
112KB
1 day ago
All hands meeting will take place coming Thursday at 13:45.
2 days ago
Christine commented on your community post from 10.12.2021
2 days ago
HR department requested you to complete internal survey by Friday
3 days ago
Loading...
Demo configuration
Color mode
Direction
Layouts
Purchase Limitless