Questions about about view "template" type "header"

i all
i’m quit new in webix and i’m doing some test; i owuld have two questions about view “template” type “header”:
1- suppose i have
{view:“template”, id:“tmp01”, type: “header”, template : “My template” }
in which way i can change (at run time) the template’s value from “My template” to “new template” ? i tried with $$(“tmp01”).setValues({desrc:“new template”});
$$(“tmp01”).refresh();
but it don’t work

2- How can i center in the row the “My template” text ?

thanks in advance

1\. Depending on the template content, you can use two methods of setting a value to the template: setHTML and setValues.

https://webix.com/snippet/3d69fc2f

2\. As the template can contain any valid html, you need to apply the corresponding styling with html/css