Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MDBDatatable - format

Petr Urban priority asked 1 year ago


Dear MDB, I'm trying to use the format property on MDBDatatable, but without success. Finally i tried the example from your page, but it is not working for me.

Here is the snippet:

https://mdbootstrap.com/snippets/vue/petr_urban/5394338

https://mdbootstrap.com/snippets/standard/petr_urban/5394402

Is it special field in column structure or is it just adding free object with format like in your example please?

Thanks for any help.

BR, Petr


Bartosz Cylwik staff answered 1 year ago


Hello! Format property in dataset columns needs to be an array of objects with styles for each cell. You can use computed value or just a simple array. You can check my snippet for that. You can find there a few examples (some of them commented out): https://mdbootstrap.com/snippets/vue/b-cylwik/5399531#js-tab-view

Your snippet doesn't show anything because it contains script setup syntax and TS.

Best Regards!



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 Vue
  • MDB Version: MDB5 4.0.0
  • Device: MacBook
  • Browser: Safari, Firefox
  • OS: MacOS Ventura
  • Provided sample code: No
  • Provided link: Yes