@maestro_io/panel-sdk

0.1.4 • Public • Published

Maestro Panel SDK

Version: 1.00.0

Initializing

const MaestroPanelSDK = require('MaestroPanelSDK');
const panel = new MaestroPanelSDK();

const run = async () => {
  panel.init();
}

// get style from parent
panel.on('style', (style) => {
  // do stuff
  
});

// tell parent to render panel
panel.render();

// initialize the sdk
panel.init();

// destroy when finished
panel.destroy();

Methods

Name Params Description Payload Async
init registers the iframe with the parent and inits listener false
destroy destroys listeners and informs parent this iframe is destroyed false
render informs the parent the panel should be rendered false

Events

Name | Description style | fired when the parent's style changes | Payload matches IStyle.ts

/@maestro_io/panel-sdk/

    Package Sidebar

    Install

    npm i @maestro_io/panel-sdk

    Weekly Downloads

    0

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    227 kB

    Total Files

    36

    Last publish

    Collaborators

    • shazimajaz
    • ferm9494
    • luiz-maestro
    • sterlbuck
    • barbaradorame
    • maestro-devops-robot
    • eldade
    • bruno-albino
    • deliton
    • uzielvaldez
    • alexalmadav
    • marioario
    • sjanderson