Transfer
Introduction
The Transfer component lets you select multiple items from a list by moving them between two columns.
Configurations
Category |
Configuration |
Example |
Description |
Content |
Data Source |
The data source for the Transfer component. Data from the source is rendered in the left column, except for items specified in the |
|
Key collection for the right column |
|
A collection of keys for the data displayed in the right column. |
|
Key collection for selected data |
|
A collection of keys for the selected data. |
|
Title |
The title bar of the top multi-select box contains a left title and a right title. |
||
Operation text |
The text for the buttons that move items left and right. |
||
Interaction |
Hide |
Controls the default display state of the Transfer component. If set to |
|
Disable |
Specifies whether to disable the Transfer component. |
||
Show search box |
Enables the search feature. This feature filters data based on user input. |
||
Show select all checkbox |
You can select all elements within the box. |
||
One-way mode |
Allows items to be moved only from the left column to the right column. |
||
Style |
Margin |
For more information, see Common properties. |
Properties and methods
Name |
Type |
Example |
Description |
targetKeys |
array |
|
The collection of keys in the right column of the Transfer component. |
selectedKeys |
array |
|
The collection of keys for the selected items in the Transfer component. |
dataSource |
array |
|
The data source of the Transfer component. |
disabled |
boolean |
|
Specifies whether the Transfer component is disabled. |
oneWay |
boolean |
|
Specifies whether the Transfer component is in one-way mode. |
hidden |
boolean |
|
Specifies whether the component is hidden. |
setTargetKeys |
func |
|
Sets the data in the right column of the Transfer component to |
clearTargetKeys |
func |
|
Clears the data in the right column of the Transfer component. |
setDisabled |
func |
|
Disables the Transfer component. |
clearDisabled |
func |
|
Clears the disabled state of the Transfer component. |
setHidden |
func |
|
Sets whether the Transfer component is hidden. The parameter can be |
clearHidden |
func |
|
Clears the hidden state of the Transfer component. |
Event callbacks
Configuration |
Description |
The event that is triggered when an option is transferred between the two columns. |
|
The event that is triggered when the selected items change. |
Scenario examples
Task list scenario
You can use the Transfer component to view task progress.

