我们如何在 ng2-smart-table 中将文本右对齐?
最佳答案
试试这个代码,它对我有用。
this.settings.columns["title"] = { "title": this.settings.columns["title"].title, type:'html',valuePrepareFunction: function(value){
return '<div class="customformat"> ' + value + ' </div>'
}};
CSS
:host /deep/ .customformat{ text-align: right; }
关于angular - ng2-smart-table,对齐文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49781001/