Skip to main content

HTMLDwebClipboardElement

BFChainWebComponentHTMLDwebClipboardElementLess than 1 minute

Implements a WebComponent for accessing the clipboard;
Inherits from HTMLElementopen in new window;

<dweb-clipboard></dweb-clipboard>

Properties

Methods

  • None

Events

Supports any events, no predefined events;

Example

<body>
  <dweb-clipboard></dweb-clipboard>
  <button>read</button>
  <script type="module">
    import "@plaoc/plugins"
    const clipboard = document.querySelector("dweb-clipboard")!
    const btn = document.querySelector('button');
    btn.addEventListener('click', async () => {
      const url = await clipboard.read();
    })
  </script>
</body>

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
pluginX
readX
writeX

Plaoc WebComponent

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.15.7