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

标签 css angular ng2-smart-table

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

相关文章:

Angular 2 ng2-智能表:issue while catch the data from custom button event

node.js - Ng2-Smart-table 不起作用,返回 404 未找到错误和 system.js 错误

javascript - 同时滑入和滑出

Angular Material - MdInput 到 MatInputModule?

html - 圆形图片的增长效果问题 - css

html - 调整大小时如何设置背景图像以适合浏览器窗口?

angular - 类 'ModalDirective' 错误地实现了接口(interface) 'AfterViewInit'

javascript - ng2-smart-table如何更改自定义按钮在点击时的显示和隐藏

javascript - JavaScript 中的多个按键操作

jquery - 重置 css 类,删除 .selected