How to refresh a dashboard using a JS function?

Hi, I use a panel with “Text Dynamic” and when I press a button, I make a change in the database. I would like to be able to refresh the dashboard directly without having to wait for it to be done automatically. And the location.reload() takes too much time and is not discreet enough.

Would you have a solution please?

Thanks in advance

Hi @jse

Is this a custom panel which you developed?