0.0.6-beta • Published 4 years ago

changelog-core v0.0.6-beta

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

Installation

# npm
npm install changelog-core

# yarn
yarn add changelog-core

Usage

import CoreSDK from 'changelog-core';

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

// Delete the CoreSDK iframe
sdk.remove();

// Refresh the CoreSDK iframe
sdk.update();

// Access the iframe
sdk.iframe;

sdk.on('init', ...);
sdk.on('remove', ...);
sdk.on('update', ...);
sdk.on('loaded', ...);

API

new CoreSDK(options)

Create a new instance of a changelog-embed.

options

Type:

{
  id: string;
  mode?: string;
  options?: {
    embedHost?: string;
  }
}

sdk.remove()

Destruct a changelog-iframe.

sdk.remove()

Update the changelog-embed-iframe's contents.

sdk.on(event: string, cb: () => any)

Listen to internal events.

sdk.iframe: HTMLIframeElement

Access the changelog-embed-iframe.

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