HTMLDwebVirtualKeyboardElement
WebComponentHTMLDwebVirtualKeyboardElementLess than 1 minute
A WebComponent for accessing the system virtual keyboard;
Inherits from HTMLStateObserverElement;
<dweb-virtual-keyboard></dweb-virtual-keyboard>
Properties
plugin
A VirtualKeyboardPlugin object
state
A VirtualKeyboardPlugin.state object;
getState
The VirtualKeyboardPlugin.getState() method
setState
The VirtualKeyboardPlugin.setState() method
setOverlay
The VirtualKeyboardPlugin.setOverlay() method
getOverlay
The VirtualKeyboardPlugin.getOverlay() method
Methods
- None
Events
"statechange"
Triggered when state changes;
Passes a CustomEvent object to listener;
CustomEvent.detail is a VirtualKeyboardPlugin.state object;
Example
<body>
<dweb-virtual-keyboard></dweb-virtual-keyboard>
<script type="text/javascript">
const dwebVirtualKeyboard = document.querySelector("dweb-virtual-keyboard");
dwebVirtualKeyboard.addEventListener('statechange', (customEvent) => {
});
</script>
</body>
Cross-Platform Compatibility
Properties/Methods/Events | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
plugin | ✅ | ✅ | ✅ | X |
state | ✅ | ✅ | ✅ | X |
getState | ✅ | ✅ | ✅ | X |
setState | ✅ | ✅ | ✅ | X |
setOverlay | ✅ | ✅ | ✅ | X |
getOverlay | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.15.7