Warning: Use of undefined constant MDB_STRIPE_SUB_WEBHOOK_SECRET - assumed 'MDB_STRIPE_SUB_WEBHOOK_SECRET' (this will throw an Error in a future version of PHP) in /var/www/tst02/wp-content/themes/mdbootstrap4/inc/mdb-subscriptions/mdb-payments/stripe/class-mdb-stripe-webhook.php on line 26

Warning: Use of undefined constant MDB_PAYPAL_WEBHOOK_ID - assumed 'MDB_PAYPAL_WEBHOOK_ID' (this will throw an Error in a future version of PHP) in /var/www/tst02/wp-content/themes/mdbootstrap4/inc/mdb-subscriptions/mdb-payments/paypal/class-mdb-paypal-webhook.php on line 23

Notice: Undefined index: HTTP_REFERER in /var/www/tst02/wp-content/themes/mdbootstrap4/inc/cookie-setter.php on line 8
Bootstrap Transfer - examples & tutorial

Transfer MDB Pro component

Bootstrap 5 Transfer plugin

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

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

Basic example

To create basic example just add main div container and initialize its via JavaScript.

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: true' property you can set your component to transfer data only to target table.


By adding 'pagination: true' 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.

Transfer - API


Via JavaScript

        const transfer = new Transfer(document.getElementById('mdb-transfer'), options)

Via jQuery

Note: By default, MDB does not include jQuery and you have to add it to the project on your own.



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 trnsfer component
selectAll Boolean 'true' Add select all checkbox to component
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


Name Description Example
dispose Manually removes transfer transfer.dispose()

        const transferEl = document.getElementById('mdb-transfer'); 
        const transfer = new Transfer(transferEl);


Name Description
change.mdb.transfer This event fires immediately when the data changes.
search.mdb.transfer This event fires immediately when you search some items in search box.
select.mdb.transfer This event fires immediately when you select some item.

        const transferEl = document.getElementById('mdb-transfer')
        transferEl.addEventListener('change.mdb.transfer', (e) => {
          // do something...


MDB UI KIT also works with module bundlers. Use the following code to import this component:

        import { Transfer } from 'mdb-ui-kit';