Topic: DataTable format with HTML markup

davesmacer priority asked 1 year ago


Is there anyway to apply a format to cells on a datatable when using HTML markup? I tried setting a JS function name in the data-mdb-format tag but it gives error. In specific, I'm trying to add to each tag a certain class (align-middle). I understand my HTML gets replaced, but since I need to use HTML markup, how would I achieve cell formatting in this scenario?


Grzegorz Bujański staff answered 1 year ago


Unfortunately, we do not support using functions by data attributes for security reasons. At the moment there is no other way than to use JS code to format the cells


davesmacer priority commented 1 year ago

Makes sense, ty for the reply anyway.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.4.1
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No