有没有办法改变ng2-smart-table的css

时间:2019-02-16 07:38:48

标签: html css angular

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

这是我的屏幕 this is my screen

我的.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>                                  

0 个答案:

没有答案