DataFlex Custom Components for Web APIs.
Contains DataFlex implementations of:
- Broadcast Channel API
- Clipboard API
- Contact Picker API
- Credential Management API
- EyeDropper API
- Fullscreen API
- Network Information API
- Notifications API
- Page Visibility API
- Screen Wake Lock API
- Sensor APIs
- Vibration API
- Web Share API
- Web Storage API
Download either just the prebuilt custom components (WebAPIsComponents.zip) or the entire demo workspace with prebuilt components (WebAPIsDemo.zip) from the Releases page.
Download or clone the source code from GitHub, install NodeJS, and build the components with
> npm ci
> npm run build
Copy AppHtml/Custom
and the AppSrc/*API.pkg
files to your workspace. If you don't have the AppHtml/Custom
folder, see "How to get it" above.
Include these two lines in your index.html
(if your application only runs on fairly modern browsers, you can probably omit the first one):
<script src="https://unpkg.com/core-js-bundle/minified.js"></script>
<script src="Custom/index.js"></script>
NOTE that some of these APIs require a secure context, which means they only work when page is accessed using https! Those APIs are marked with a padlock icon in the demo application.