Align column in aldeed:tabular


#1

How to align cell in aldeed:tabular column?


#2

Just add className: ‘cssClassName’ to your column definitions. E.g.

TabularTables.MyTable = new Tabular.Table({
name: ‘MyTable’,
collection: MyTable,
columns: [
{
data: qty,
title: ‘Qty’,
className: ‘cssClassName’
}
]
});

Then in your stylesheet:

.cssClassName {
text-align: right;
}