Topic: Selectable rows of table not working
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); })
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: 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
Tags
Related topics
Dawid Wajszczuk staff commented 3 years ago
Hi. Can you describe your problem? A snippet would be nice https://mdbootstrap.com/snippets/. Here is the snippet with basic example and everything works fine https://mdbootstrap.com/snippets/standard/d-wajszczuk/3451085.