If there is no data in the list i shouls show like "No data Found"--->Message
I have tried using [emptyMessage]="''" but it is not working in angular 2.0
Please provide a demo and fill out the form. Once done, I will reopen and investigate.
if there is no item in that list i have to show message like "No data found"
It is not a issue i need support
In your structure you declared as
@Input() messages: any = {
// Message to show when array is presented
// but contains no values
emptyMessage: 'No data to display',
// Footer total message
totalMessage: 'total',
// Footer selected message
selectedMessage: 'selected'
};
But in my table if there is no list item. it will not show emptymessage in my table body
Is i enable any option for show this message...?
any update on this issue.\?
am also facing same issue.
Hey guys,
I know this is an old post from last year, but I was also looking for an answer and had to figure it out by myself crawling the source code, so here's the answer in case somebody else needs to customize the "no results" message:
[messages]="{emptyMessage:'No results available.'}"
You can override the flowing messages :
[messages]="{
emptyMessage: 'my : No data to display.',
totalMessage: 'my : total',
selectedMessage: 'my : selected'
}"
where they add this module, when importing they add this:
NgxDatatableModule.forRoot({
messages: {
emptyMessage: 'No hay datos disponibles',
totalMessage: 'total',
selectedMessage: 'selected'
}
}),
we still have this issue of not displaying the emptyMessage when data is empty
@swimlane/ngx-datatable version:
18.0.0
angular version:
10.1.3
Most helpful comment
Hey guys,
I know this is an old post from last year, but I was also looking for an answer and had to figure it out by myself crawling the source code, so here's the answer in case somebody else needs to customize the "no results" message:
[messages]="{emptyMessage:'No results available.'}"