Topic: MDB datatable bug with onclick property
buesser priority asked 1 year ago
Expected behavior
I want to add a Button with a onclick function on it. Now I need also to add arguments to that function call. The alert should show the correct value
Actual behavior
When there is a Space ' ' in or between these arguments the datatable breaks and there is a javascript error because the onclick property is cut off.
It just ends the onclick="" property before the whole function with its arguments is declared.
Resources (screenshots, code snippets etc.)
https://mdbootstrap.com/snippets/standard/severin-schmid/5623934/
Kamila Pieńkowska staff answered 1 year ago
We will look into this. As for now check out this example: https://mdbootstrap.com/docs/standard/data/datatables/#section-action-btns
Maybe it will give you an idea of how to use a different approach.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.4.1
- Device: HP EliteBook 1030
- Browser: Chrome
- OS: Win 11
- Provided sample code: No
- Provided link: Yes