Changing the template of a pager

I have a pager that I would like to change the template of based on a button click. The problem is, even though I call the define method, followed by the refresh method, it doesn’t change the pager until you click the pager itself.

https://webix.com/snippet/c20167ec

In this snippet, click the “Change pager” button, then click the 2 button on the pager. Only after you click the pager does the template update. I’d like it to update immediately once I click the “Change pager” button. Is this possible?

use $$("pagerA").render();

That was the solution. Thank you intregal