How can we align text to right in ng2-smart-table?
3
votes
2 Answers
4
votes
3
votes
There is another way by using the css only.
To move all columns to the right:
:host /deep/ ng2-smart-table tbody > tr > td{
text-align: right;
}
To move all titles to the right:
:host /deep/ ng2-smart-table thead th{
text-align: center;
}
To move all input filters to the right:
:host /deep/ ng2-smart-table thead input-filter input{
text-align: center;
}
etc.