gpt4 book ai didi

css - ng2-智能表 : how to use css?

转载 作者:太空狗 更新时间:2023-10-29 18:15:13 27 4
gpt4 key购买 nike

任何人都可以帮助我如何将 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com