Set table width of individual columns


Topic: Set table width of individual columns

ExTox pro premium priority asked 8 months ago

Expected behavior I would like to define the table width of individual columns, how can I do this? In the API there is the (maxWidth) following function but apparently this is for the whole table and not for individual columns?

Actual behavior style: 'width: 20%' is currently simply ignored and has no effect

      {
      label: 'Name',
      field: 'name',
      attributes: {
        style: 'width: 20%' // Example: Set width to 20%
      }

Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/extox/6017571


Kamila Pieńkowska staff answered 8 months ago

I've created example for you:https://mdbootstrap.com/snippets/standard/kpienkowska/6019089

But option width used there works only with pixels, it won't work with percents.


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
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.1.0
  • Device: Leptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes