任何人都可以帮助我如何将 CSS 用于 ng2-smart-table 组件?
我想自定义分页,标题,thead,tbody
提前致谢 安德里亚
最佳答案
在设置对象中使用以下配置
attr: {
class: 'table table-bordered'
}, //this is for getting default table class
和
:host /deep/ ng2-smart-table {
font-size: 16px;
}//this for custom css
示例:
settings = {
columns: {
id: {
title: 'ID'
},
name: {
title: 'Full Name'
},
username: {
title: 'User Name'
},
email: {
title: 'Email'
}
},
attr: {
class: 'table table-bordered'
}
};
关于css - ng2-智能表 : how to use css?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49728392/