1.3.2 • Published 4 years ago

@glowy/plugin v1.3.2

Weekly downloads
12
License
ISC
Repository
github
Last release
4 years ago

CircleCI Bundlephobia JSDelivr

Glowy Plugin

Add Glowy to your website using our plugin

Installation

Script tag

Via jsDelivr

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@glowy/plugin@latest/dist/glowy-plugin.min.js" async defer></script>

Via unpkg

<script type="text/javascript" src="https://unpkg.com/@glowy/plugin/dist/glowy-plugin.min.js" async defer></script>

NPM

$ npm i -S @glowy/plugin
import glowy from '@glowy/plugin'

Getting started

Once Glowy Plugin is installed it will detect the presence of any Glowy Frame div in the DOM so you just have to add the div wherever you want the Glowy Frame to appear.

<div class="glowy-frame" [option-attributes]></div>

Option attributes

The option attributes are data-* attributes of which values will be passed to the Glowy Frame.

The possible attributes are:

AttributeTypeRequired?DefaultDescription
data-environmentstaging or productionfalseproductionThe environment into which the plugin will run
data-providerstring (uuid)trueThe Provider ID of which Glowy will retrieve merchant information
data-mediadesktop or mobilefalsedesktopThe media in which the frame is being inserted
data-screenlist or my-appointmentsfalselistThe screen which the frame will start at
data-tokenstring (uuid)trueThe authentication token to identify the user
data-lookstringfalseThe slug-name of the service
data-back-button-labelstringfalseInícioThe back button label
data-back-button-urlstring (url)falseThe back button URL
data-scroll-offsetnumberfalseOffset difference when scroll automatically
1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago