Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show empty text in smart-table when data is empty

I am using smart table in my application. The smart-table is configured with static headers and pagination bar. The data is loaded via async request. When the data received is empty the smart-table is shown with headers and pagination-bar. I want to show empty-text in between. I've read all the documentation but i didn't find any config that allows to set the empty text. How do i do it?

like image 719
Vivek Avatar asked Feb 10 '23 14:02

Vivek


1 Answers

Below the

<tr ng-repeat="row in rowCollection"></tr>

Put another tr with ng-if or ng-show directive when the data is empty.

<tr ng-if="rowCollection.length == 0">
   // your message here
</tr>
like image 135
mohamedrias Avatar answered Feb 13 '23 05:02

mohamedrias