Vue Transfer

Vue Bootstrap 5 Transfer plugin

Transfer component allows you to transfer the data between two columns.

Transfer plugin built with the latest Bootstrap 5 and Vue 3. Transfer data between two columns. Supports disabled items, one way transfer, pagination, and more.

Note: Read the API tab to find all available options and advanced customization


Basic example

To create basic example just use MDBTransfer component


Disabled items

To make some of elements unable to select just add 'disabled: true' property to proper item.


Checked items

By adding property 'checked: true' to item during initialization you can make element mark.


One way

By adding oneWay property to MDBTransfer you can set your component to transfer data only to target table.


Pagination

By adding pagination property you can set pagination on transfer component.


Pagination with custom quantity

Furthermore, if you want to set custom number of elements per page then just use elementsPerPage property.


Vue Transfer - API


Import


        import { MDBTransfer } from "mdb-vue-transfer";
      

Properties

Name Type Default Description
dataTarget Array '[]' Add data to target table
dataSource Array '[]' Add data to source table
elementsPerPage Number '5' Work only with 'pagination:true'. Set number of items per page
oneWay Boolean 'false' Allows you to set a way of sending data between tables
pagination Boolean 'false' Add pagination to your transfer component
search Boolean 'false' Add search box to transfer component
selectAll Boolean 'true' Add select all checkbox to component
tag String 'div' Sets wrapper tag element
titleTarget String 'Target' Changes title of target table
titleSource String 'Source' Changes title of source table
toTargetArrow String '' Changes text of right arrow
toSourceArrow String '' Changes test of left arrow

Methods

Name Description
getTarget Returns current target array.
getSource Returns current source array.

Events

Name Description
onChange This event fires immediately when the data changes.
onSearch This event fires immediately when you search some items in search box.
onSelect This event fires immediately when you select some item.

For example, to listen on file change add an event


        <MDBTransfer @onChange="handleChange" />