Dynamically change TabViewItems title


#1

I’m trying to change a tabViewItem title.

I’ve tried something as simple as

page.getViewById("tabviewitem-id").title = "String I get from a JSON containing localizations";

but I get the following error: tabLayout.updateItemAt is not a function, undefined.

How can I change a TabViewItem title dynamically from JavaScript?