mui.getViewport(< name >)

This method returns a ViewPort by name

Syntax: mui.viewPort(<ViewPort id>)

For more information about viewports see 'MobileUI App Structure' in User Guide.

Note: For the standar viewport use: mui.viewport and mui.screen

 

Quick example

For the Viewport:

<div id=’miviewport' class=’mui-viewport’>


</div>

its use would be:

var vp = mui.getViewport('miviewport');

Note that for standards viewports is equivalent:

mui.viewport == mui.getViewport('mui-viewport')

mui.screen == mui.getViewport('mui-screen')