首页 > 解决方案 > 有没有办法改变 ng2-smart-table 的 css

问题描述

我想更改 ng2-smart-table 的 css。我在下面添加我的屏幕。我想删除显示在第一行的街区和公寓箱。如何更改类似于其他字段的公寓列自动填充框大小?

这是我的屏幕 这是我的屏幕

我的 .ts 文件在下面,

    settings = {columns: {
  block_name: {
    title: 'Block',
    type: 'html',
    editor: {
      type: 'list',
      config: {
        list: this.newblock
      },
    }
  }, cust_name: {
    title: 'Apartment',
    editor: {
      type: 'completer',
      config: {
        completer: {
          data: this.newapart,
          searchFields: 'title',
          titleField: 'title'
        },
      },
    },
  },... }

.html 文件,

<div class="row">
  <div>
    <input #search class="search" type="text" placeholder="Search..." (keydown.enter)="onSearch(search.value)">
    <ng2-smart-table [settings]="settings" [source]="source" (deleteConfirm)="onDelete($event)"
            (editConfirm)="onSave($event)"
            (createConfirm)="onCreate($event)" ></ng2-smart-table>
</div>                                  

标签: htmlcssangular

解决方案


推荐阅读