Is it possible to refresh the content inside a popup when the popup is opened or closed? For example, my popup contains a .data-table
with a search bar to filter the table. If I filter the table and then open the popup again at a later stage to search for something else, the search bar still contains the text from before.
Therefore every time I open the popup I would like the content to be refreshed.
$$('.popup-search').on('popup:opened', function (e, popup) {
//refresh code here?
})
Thanks