Saaslet.js Installation & Usage

saaslet.js is a small JavaScript library that makes it easy to create widgets within your app and to interact with the Saaslet API.

Installation

You have three options to include saaslet.js in your app.

1) Load it from a CDN Add this script tag to your page <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/saaslet/saaslet.js"></script>

2) Via NPM or yarn

npm i saaslet

or

yarn add saaslet

3) Via download

You can download saaslet.js here or browse the source on Github.

Usage

Include saaslet.js into your app and create a widget

<!DOCTYPE html> <html> <body style="background-color:#ECECEC;"> <title>BurgerApp</title> <div id="saaslet-signup" style="width:150px;margin:300px;"></div> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/saaslet@1.0.0/saaslet.js"></script> <script type="text/javascript"> const saaslet = new Saaslet('ZGV2X2N1c19faHNmTjhSZl9sbVp2SGRWbHVxVVl4LmRldl9hcHBfSklheXh0MWt4TE9zWng5cG1BaUdTSw=='); saaslet.createWidget( "signup-login", "#saaslet-signup", { companyName: "MetaCorp", companyLogoImgPath: "https://saaslet.com/assets/img/demo-logo.png", showHeader: true }, null ); </script> </body> </html>

on this page: