跳至主要內容

HTMLDwebVirtualKeyboardElement

BFChainWebComponentHTMLDwebVirtualKeyboardElement小于 1 分钟

访问系统虚拟键盘的 WebComponent;
继承与 HTMLStateObserverElement接口;

<dweb-virtual-keyboard></dweb-virtual-keyboard>

属性

方法

事件

  • "statechange"

状态发生改变触发;
会传递一个 CustomEventopen in new window 对象给事件监听器;
CustomEvent.detail 是一个 VirtualKeyboardPlugin.state 对象;

示例

<body>
  <dweb-virtual-keyboard></dweb-virtual-keyboard>
  <script type="text/javascript">
    const dwebVirtualkeyboard = document.querySelector("dweb-virtual-keyboard");
    dwebVirtualkeyboard.addEventListener('statechange', (customEvent) => {

    })
  </script>
</body>

平台兼容性

属性/方法/事件AndroidIOSDesktop-DevDesktop
pluginX
stateX
getStateX
setStateX
setOverlayX
getOverlayX

相关链接

Plaoc WebComponent

VirtualKeyboardPlugin

评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.7