Topic: Selectable rows of table not working

iqitlab free asked 2 years ago

Expected behavior

Actual behavior

Resources (screenshots, code snippets etc.) const datatable = document.getElementById('datatable');

new mdb.Datatable({ rows: [], columns: [] }, { selectable: true, multi: false })

datatable.addEventListener('selectRows.mdb.datatable', (event: { selectedRows: any; selectedIndexes: any; selectedAll: any; }) => { console.log(event.selectedRows, event.selectedIndexes, event.selectedAll); })

Dawid Wajszczuk staff commented 2 years ago

Hi. Can you describe your problem? A snippet would be nice Here is the snippet with basic example and everything works fine

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.8.1
  • Device: hp pavilion Desk Top
  • Browser: google chrome
  • OS: window 10
  • Provided sample code: No
  • Provided link: No