See also: Data Tables

Description

Dual list selectors allow users to select multiple items from a predefined list. It is especially useful when there is a large number of available items.

Dual List Selector.png

A common use of the dual list selector is as a column picker for Data tables.

Column picker.png

Usage & Behavior

General guidelines

Structure

The dual list selector includes:

Placement and Positioning

Content

Internal logic

States

Interaction

Selecting Items

Moving items between lists

Reordering the Chosen items list

Restoring Defaults (optional)

Pinning columns (optional, only relevant for table column selectors)

For table column selectors, items in the Chosen items list may be pinned to the top. This will ensure that these columns are always visible on the table, and remain static when there is horizontal scroll.

State

How the item looks on the Visible Items list

How the table would look

A mandatory column (always pinned)

image-20240528-081211.png

When scrolled:

One Pinned.png

Before pinning the item (the user hovers over the item)

image-20240326-164010.png

After pinning the item.

image-20240326-164057.png

Two Pinned.png

Validation and Errors

No items on the chosen columns list

If all items are removed from the Chosen items list:

Empty3.png

Exceeding the Chosen items limit

Error.png

Best practices

Where used as a table column selector:

Accessibility compliance

Unless otherwise specified, see our general compliance information in Fundamentals - Accessibility.

Focus management

Navigation.png

Design

Zeplin link

Screen thumbnail

https://zpl.io/2j6oopW

Happy trail

Initial state

Initial.png

Selecting items

Selecting items 2.png

After adding items to the chosen list

After adding.png

Edge cases

No items chosen

Empty3.png

Maximum items exceeded

Error2.png

Optional

Grouped items

Tree.png

Code