Change width of table column


Topic: Change width of table column

rashesh patel pro asked 4 months ago

Hi, I am using Basic And Material Design of Datatables of MDB React Tables in my project by using the same format, when I change the value of width of the column it can't show any changes in table.So how can I change the width of column of the table.


Aliaksandr Andrasiuk staff answered 4 months ago

Hello,

For change width of a column, you should add one of the next properties: scrollX or scrollY.

<MDBDataTable striped bordered scrollY hover entriesOptions={[5, 20, 25]} entries={5} pagesAmount={4} data={yourData} />

Best regards,

Aliaksandr from MDB.


rashesh patel pro answered 4 months ago

Even in MDB official website in Datatable vertical scroll example there is no alignment of labels and its components.

https://wetransfer.com/downloads/ad0e7b60eb8767c3fbd0c0821b4c582d20190328045432/cc7f5a/preview/50e44ced18abb77670c30c37490f9f4120190328045432

So what should I do for alignment??


Aliaksandr Andrasiuk staff answered 4 months ago

Hello,

Thank you for the information. Unfortunately, after tests it becomes that is the bug, we will fix it in the near future.

Best regards,

Aliaksandr from MDB.


rashesh patel pro commented 3 months ago

Is that bug resolved??


Aliaksandr Andrasiuk staff commented 3 months ago

For now, it's not resolved. Work on this in progress.

Best regards.


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: React
  • MDB Version: 4.11.1
  • Device: LAPTOP
  • Browser: CHROME
  • OS: WINDOWS 10
  • Provided sample code: No
  • Provided link: No