Skip to content
Calm motion: animations on this site only fade, with no movement

PickList ​

Two listboxes with transfer buttons

Choosing a subset from a long list where both sides matter: the columns to show, the members of a group. For picking several from a short list, a multiple Listbox or checkboxes are simpler. To reorder a single list, OrderList.

Basic
Cast · 5
加藤恵
英梨々
詩羽
美智留
出海
Main · 1
倫也
  • Select in either list (Space, or click), then move with the buttons between them. Buttons are named after the list they move to. After a move, focus goes to that list and the move is announced.
  • v-model:source and v-model:target both update. labels.source / labels.target name the lists.

Usage ​

ts
import { BlessPickList } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
rowsnumber6
labelsPartial<{ source: string; target: string; moveSelected: (to: string) => string; moveAll: (to: string) => string; moved: (count: number, to: string) => string; }>—
sourceBlessOption<T>[][]
targetBlessOption<T>[][]

Events

NamePayloadDescription
update:source[value: BlessOption<T>[]]
update:target[value: BlessOption<T>[]]

Released under the MIT License. Character names and artwork belong to their owners.