0.0.7-beta • Published 4 years ago

changelog-widget v0.0.7-beta

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Useful Links

Installation

# npm
npm install changelog-widget

# yarn
yarn add changelog-widget

Usage

import Widget from 'changelog-widget';

// Instantiate the Widget
let sdk = new Widget({
  id: '5Web2XRF',
  key: 'IK-X2zvTYjp-NCg-3q2Rj'

  // The element the widget should be mounted to
  element: document.querySelector('.my-button')
});

// Toggle the widget
sdk.toggle();

// Open the widget
sdk.open();

// Close the widget
sdk.close();

API

new WidgetSDK(options)

Create a new widget-instance.

options

Type:

{
  id: string;
  key: string;
  element: string;
}

sdk.open()

Open the widget programmatically.

sdk.close()

Close the widget programmatically.

sdk.toggle()

Open or close the widget programmatically.

0.0.7-beta

4 years ago

0.0.6-beta

4 years ago

0.0.5-beta

4 years ago

0.0.4-beta

4 years ago

0.0.3-beta

4 years ago

0.0.2-beta

4 years ago

0.0.1-beta

4 years ago