akveo / ng2-smart-table

Angular Smart Data Table component
https://akveo.github.io/ng2-smart-table/
MIT License
1.63k stars 877 forks source link

Stand alone search field #831

Open arikbidny opened 6 years ago

arikbidny commented 6 years ago

Hey, I added a stand alone search field in my project and it works fine , but I have an issue when i'm deleting my search query the table stays empty. How can i reset the table after deleting the search query ? thanks ..

milosdavidovic commented 6 years ago

One solution would be: if (query === '') { this.source.reset(); return; }

arikbidny commented 6 years ago

It works, thanks for your response and help .

On 8 Jul 2018, at 19:14, milosdavidovic notifications@github.com wrote:

One solution would be: if (query === '') { this.source.reset(); return; }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/akveo/ng2-smart-table/issues/831#issuecomment-403298389, or mute the thread https://github.com/notifications/unsubscribe-auth/AJy5HQoHq1NGlLZp_NAxMaM3PEpa7CaVks5uEi_ggaJpZM4VGNwn.