Skip to main content

Plaoc WebComponent

BFChainLess than 1 minute

Plaoc WebComponent

A WebComponent frontend plugin that provides cross-platform access to system capabilities.

Installation

npm install @plaoc/plugins

Example

<body>
  <dweb-barcode-scanning></dweb-barcode-scanning>
  
  <button @click="taskPhoto()">scanner</button>
  
  <script type="module">
    import "@plaoc/plugins"
  
    const barcodeScanner = document.querySelector("dweb-barcode-scanning")!
  
    // Call barcode scanning
    async function taskPhoto() {
      await barcodeScanner.startScanning();
    }
  
    Object.assign(globalThis,{ taskPhoto })
  </script>
</body>

Plaoc Plugin

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