Class ccui.WebView
- Defined in: UIWebView.js
- Extends ccui.Widget
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Class Detail
ccui.WebView()
Field Detail
<static>
ccui.WebView.EventType
The WebView support list of events
{String}
path
- The url to be shown in the web view
Method Detail
-
canGoBack()Determine whether to go back
-
canGoForward()Determine whether to go forward
-
cleanup()remove node
-
evaluateJS(str)In the webview execution within a period of js string
- Parameters:
- {String} str
-
goBack()go back
-
goForward()go forward
-
loadURL(url)Load an URL
- Parameters:
- {String} url
-
reload()Reload the WebView
-
removeEventListener(event)Delete events
- Parameters:
- {ccui.WebView.EventType} event
-
setContentSize(w, h)Set the contentSize
- Parameters:
- {Number} w
- {Number} h
-
setEventListener(event, callback)The binding event
- Parameters:
- {ccui.WebView.EventType} event
- {Function} callback
-
setScalesPageToFit()Limited scale
-
stopLoading()Stop loading