i got it.
it's cause webview 's layout_width (in xml) and height is not set to match_parent by default.
In the template data you set the title
property:
res.render('map', {
title: 'Map',
});
Thanks. Now my custom global.json has this content:
{
"header.map":"Maps"
}
In my map.tpl, I can access this property as follows: [[global:header.map]]
But I cannot access it in the same way in my controller.js like this:
res.render('map', { title: [[global:header.map]] });
What is the correct way to access this property value in controller.js?
@cool you should be able to do title: '[[global:header.map]]'