Forms

Transfer

@xui/transfer

A dual list-box — check items on either side and move them across with the arrow buttons. values (two-way) holds the keys on the right; each side has a header select-all and an optional search box.

Install

pnpm add @xui/transfer

Add the barrel to a standalone component's imports:

import { XuiTransferImports } from '@xui/transfer';

@Component({
  imports: [XuiTransferImports],
  // …
})

Examples

Basic

Loading preview…

Searchable

Loading preview…

API

XuiTransfer

componentxui-transfer

A dual list-box that moves items between a source and a target list. items is the full set; values (two-way) are the keys on the right. Check items and use the arrow buttons to move them; each side can be searched.

Inputs

NameTypeDefaultclassClassValueExtra classes, merged into the component's own rather than replacing them.''itemsXuiTransferItem[]Every item, on both sides. Which side each one is on comes from the bound value, not from this list.[]valuestwo-waystring[]The target-list keys. Two-way bindable with [(values)], or via formControl/ngModel.[]titles[string, string]Headings for the two lists, source first.['Source', 'Target']searchablebooleanAdd a filter field above each list.falsedisabledbooleanBlock interaction and dim both lists.false

Source

libs/ui/transfer/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.