Topic: MDB datatable bug with onclick property

buesser priority asked 10 months 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.)

Kamila Pieńkowska staff answered 10 months ago

We will look into this. As for now check out this example:

Maybe it will give you an idea of how to use a different approach.

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: 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