HTMLMWebviewElement
WebComponentHTMLMWebviewElementLess than 1 minute
A WebComponent for the multi-webview plugin;
Inherits from HTMLElement;
<dweb-mwebview></dweb-mwebview>
Properties
plugin
A MWebviewPlugin object
Methods
HTMLMWebviewElement.open()
Essentially executes MWebviewPlugin.open()
HTMLMWebviewElement.close()
Essentially executes MWebviewPlugin.close()
HTMLMWebviewElement.activate()
Essentially executes MWebviewPlugin.activate()
HTMLMWebviewElement.closeApp()
Essentially executes MWebviewPlugin.closeApp()
Events
- No predefined events
Example
<body>
<dweb-mwebview></dweb-mwebview>
<script type="text/javascript">
const dwebMWebview = document.querySelector("dweb-mwebview");
dwebMWebview.open(`http://xxxx`)
</script>
</body>
Cross-Platform Compatibility
Properties/Methods/Events | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
plugin | ✅ | ✅ | ✅ | X |
open | ✅ | ✅ | ✅ | X |
close | ✅ | ✅ | ✅ | X |
activate | ✅ | ✅ | ✅ | X |
closeApp | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.15.7