Topic: Transfer plugin: get transferred data

tlippuner priority asked 1 year ago


Hi I want to try the transfer plugin and trying to save the data with an ajax script. How do i get the transferred data? Taking basic example from documentation:

const transferEl = document.getElementById('mdb-transfer') transferEl.addEventListener('change.mdb.transfer', (e) => { //here i want to fetch last transferred element(s) })


tlippuner priority commented 1 year ago

I think i found it, in the sentItems --> e.sentItems[0].data

Thanks anyway :-)


Mateusz Lazaru staff commented 1 year ago

I am glad that you were able to solve the problem on your own. If you encounter any difficulties, feel free to open a new ticket!



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.0.1
  • Device: Desktop/Laptop
  • Browser: all browsers
  • OS: Windows 10/11
  • Provided sample code: No
  • Provided link: No