Getting data from checked row on DataTable


Topic: Getting data from checked row on DataTable

yujanrichie asked 2 years ago

I want to place checkboxes on a datatable. Your example in  https://mdbootstrap.com/docs/react/tables/additional/  does not show how to handle and get the row data that was checked. 


Jakub Mandra staff premium answered 2 years ago

These are layout examples.

You can attach value to checkbox and then do something in onChange method.

Check checkbox documentation


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: React
  • MDB Version: 4.7.1
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes