Gel*_*o77 3 css ng2-smart-table angular
任何人都可以帮助我如何将CSS用于ng2-smart-table compoment?
我喜欢自定义分页,标题,主题,正文
在此先感谢Andrea
在设置对象中使用以下配置
attr: {
class: 'table table-bordered'
}, //this is for getting default table class
Run Code Online (Sandbox Code Playgroud)
和
:host /deep/ ng2-smart-table {
font-size: 16px;
}//this for custom css
Run Code Online (Sandbox Code Playgroud)
范例:
settings = {
columns: {
id: {
title: 'ID'
},
name: {
title: 'Full Name'
},
username: {
title: 'User Name'
},
email: {
title: 'Email'
}
},
attr: {
class: 'table table-bordered'
}
};
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1790 次 |
| 最近记录: |