Skip to content

About

DataFlex Custom Components for Web APIs

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

dataflex-webapis

DataFlex Custom Components for Web APIs.

Contains DataFlex implementations of:

How to get it

Option 1: DataFlex Package Manager (recommended)

Requires a DataFlex 26 installation (which includes the df-cli package manager):

> df-cli package install <your-workspace>.sws Kruse-Net/WebAPIs

This adds the custom components to your workspace, copies the client-side JavaScript to your AppHtml/WebAPIs folder, and injects the required script includes into your Index.html automatically.

Option 2: GitHub Releases

Download either the package (WebAPIs-<version>.zip) or the entire demo workspace with prebuilt components (WebAPIsDemo.zip) from the Releases page. The demo workspace is self-contained: extract the zip and open Demo/WebAPIs Demo.sws.

Option 3: Build from source

Clone the source code from GitHub, install NodeJS, and build the client-side JavaScript with

> npm ci
> npm run build

The built bundle is created in AppHtml/WebAPIs. The component classes are the AppSrc/*API.pkg files.

Usage

If you use the package manager, the components are available in your workspace and the script includes are injected automatically. Otherwise, copy AppHtml/WebAPIs and the AppSrc/*API.pkg files to your workspace, and include this line in your Index.html:

<script src="WebAPIs/index.js"></script>

NOTE that some of these APIs require a secure context, which basically means they only work when page is accessed using https, or from localhost! Those APIs are marked with a padlock icon in the demo application.

About

DataFlex Custom Components for Web APIs

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages