Topic: DataTable right align

buesser priority asked 1 year ago

How can I set the alignment of a datatable column?

The fixed column parameter explained here doesnt work:


const kategorienColumns = [

{ label: 'Name', field: 'name' , width: 800},
{ label: 'Anzahl', field: 'anzahl', fixed: 'right'},
{ label: 'Steuern', field: 'steuern'} 


Thanks so much

Severin Schmid

Kamila Pieńkowska staff answered 1 year ago

Here is an example from the documentation.

For this option to work, you must set the width and fixed option for the column you want to stick to one side.

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.2.0
  • Device: HP EliteBook 1030
  • Browser: Chrome
  • OS: Win 10
  • Provided sample code: No
  • Provided link: Yes