How can I customize the no data message for ngx-datatable? I want to avoid displaying the default message that comes with it.
Here is what I have attempted so far:
<div *ngIf="showTable">
<ngx-datatable [rows]="rows">
<div *ngIf="searchDataNotFound" >
<img src="nodata.png"/>
<span> No Contacts to display</span>
</div>
<div class="clear-search-text"(click)="clearSearch(searchComponentHook)>Clear Search</div>
<ngx-datatable-column *ngFor="let column of columns"
[name]="column.name">
.....
<ngx-datatable-column>
<ngx-datatable>
.........
I have added a custom div to show the "no data found" message. The searchDataNotFound flag is set to true when there is no data and false when there is data. However, the custom message is not displaying as expected, and only the default message from ngx-datatable is shown.
Thank you