Primeng don't display empty Message-row

2019-09-20 12:00发布

I use with Primeng datatable when No records found it display a row with message, how can I hide this row?

<p-dataTable>
              <p-column [style]="{'width': '500px'}" header="Artifacts">
                  <ng-template pTemplate="filter" let-col>
                      <textarea rows="3" cols="30" style="width: 100%" pInputTextarea [(ngModel)]="parametersForAll['Artifacts']"
                      placeholder="Artifacts ..."></textarea>
                  </ng-template>
                </p-column> 
    </p-dataTable>

1条回答
倾城 Initia
2楼-- · 2019-09-20 12:58

You can disable that with the help of following css

.ui-datatable-emptymessage{
display:none
}
查看更多
登录 后发表回答