this.columns.forEach(col => {
col.flex = 2;
col.sort = 0;
- col.align = 'left';
+ col.align = '';
col.visible = this.stockVisible.includes(col.name);
});
}
if (!col.name) { col.name = col.path; }
if (!col.flex) { col.flex = 2; }
- if (!col.align) { col.align = 'left'; }
+ if (!col.align) { col.align = ''; }
if (!col.label) { col.label = col.name; }
if (!col.datatype) { col.datatype = 'text'; }
if (!col.isAuto) { col.headerLabel = col.label; }
// scrunch the data down to just the needed info.
return this.displayColumns().map(col => {
const c: GridColumnPersistConf = {name : col.name};
- if (col.align !== 'left') { c.align = col.align; }
+ if (col.align !== '') { c.align = col.align; }
if (col.flex !== 2) { c.flex = Number(col.flex); }
if (Number(col.sort)) { c.sort = Number(col.sort); }
return c;
switch (col.align) {
case "left":
classes.push('text-start');
+ break;
case "right":
classes.push('text-end');
+ break;
case "center":
classes.push('text-center');
+ break;
}
/* Base classes */