How to run a snippet code when pager is clicked within a table?

I want to run a snippet when a pager is clicked within a table as the screenshot.
I cannot find anyone who has posted a solution for this! Does anyone have a solution?

Thanks.

Kien,

Unfortunately there isn’t an easy way to do that. I’m not sure what you want to do, but you might be able to do it through a button underneath the table. As a possible start, here’s how to get the current page of the table in a snippet.