@maestro_io/panel-sdk
Maestro panel SDK for Node.js
Last updated a year ago by sjanderson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @maestro_io/panel-sdk 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.4                                ...           latest (a year ago)

5 Versions

  • 0.1.1                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |