Content:
- Properties
- Methods

You can create a control to display local or remote web pages in your App using the CreateWebView method.

web = app.CreateWebView( width=-1, height=-1, options='', zoom? ) → app object: WebView

If you are loading remote web pages, then you might want to use the SetOnProgress method to set the name of a callback function that you want called to report the progress of loading the page.

You can use the LoadUrl method to load an internal or external web page or the LoadHtml method to load text directly from within your App.
web.LoadUrl( url, options );
web.LoadHtml( html, baseFolder, options );

If you need to, you can use the Execute method to execute JavaScript code within the WebView.
web.Execute( text );

Example - Remote click to expand contents 

Example - Local File click to expand contents 

Example - Direct Html click to expand contents 

Properties

The following properties are available on the WebView object:

dataObject: { key, value }

Methods

The following methods are available on the WebView object:

Back()
CanGoBack() → Boolean
CanGoForward() → Boolean
Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetHeight( options? ) → Number
GetHomeUrl() → String: url path
GetLeft( options? ) → Number
GetParent() → app object
GetPosition( options? ) → Object: { left, top, width, height }
GetTop( options? ) → Number
GetType() → String: “WebView”
GetUrl() → String: url path
GetVisibility() → String: “Show” or “Hide” or “Gone”
GetWidth( options? ) → Number
Gone()
Hide()
IsEnabled() → Boolean
IsOverlap( obj, depth? ) → Boolean
IsVisible() → Boolean
LoadFailed() → Boolean
Method( name, types?, p1?, p2?, p3?, p4? ) → all types
Print()
Reload()
Resize()
SetScale( x, y )
Show()
Stop()