If any cell in ag-grid has numeric value like decimal, int or numeric i want that cell to be right aligned.
this.defaultColumnDefs = {
width: 75,
exportColumn: true,
type: 'numericColumn',
cellClass(params) {
return params.colDef.type === 'numericColumn' ? 'ag-numeric-cell' : '';
},
filterParams: {
buttons: ['clear'],
},
menuTabs: ['filterMenuTab'],
filter: 'agTextColumnFilter',
resizable: true,
sortable: true
};
It used to work before now i have to go to each column and specify the type. Why doesn't it take the default type?