I am using swimlane's ngx-datatable. I need to give specific widths to couple of columns in my table, but it is not working. This is how I create my table:
page.component.html:
<ngx-datatable [rows]="rows" [columns]="columns" rowHeight="auto" columnMode="force" [reorderable]="false" [swapColumns]="false"></ngx-datatable>
page.component.ts:
this.columns = [
{ prop: 'col1', resizeable: false, sortable: false, width: 30 },
{ prop: 'col2', resizeable: false },
{ prop: 'col3', resizeable: false, sortable: false },
{ prop: 'col4', resizeable: false, sortable: false },
{ prop: 'col5', resizeable: false, sortable: false, width: 30 }
];
minWidth: 30, maxWidth: 30