@remixproject/plugin-iframe
**Except if you want your plugin to ONLY work on the web, prefer [@remixproject/plugin-webview](../webview)**
Last updated 11 days ago by ioedeveloper .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @remixproject/plugin-iframe 
SYNC missed versions from official npm registry.

Plugin frame

Except if you want your plugin to ONLY work on the web, prefer @remixproject/plugin-webview

This library provides connectors to connect a plugin to an engine running in a web environment.

npm install @remixproject/plugin-iframe

If you do not expose any API you can create an instance like this :

import { createClient } from '@remixproject/plugin-iframe'

const client = createClient()
client.onload(async () => {
  const data = client.call('filemanager', 'readFile', 'ballot.sol')
})

If you need to expose an API to other plugin you need to extends the class:

import { createClient } from '@remixproject/plugin-iframe'
import { PluginClient } from '@rexmixproject/plugin'

class MyPlugin extends PluginClient {
  methods = ['hello']
  hello() {
    console.log('Hello World')
  }
}
const client = createClient()
client.onload(async () => {
  const data = client.call('filemanager', 'readFile', 'ballot.sol')
})

Current Tags

  • 0.3.5                                ...           latest (11 days ago)
  • 0.3.6                                ...           next (3 days ago)

27 Versions

  • 0.3.6                                ...           3 days ago
  • 0.3.6-beta                                ...           9 days ago
  • 0.3.5                                ...           11 days ago
  • 0.3.5-beta                                ...           12 days ago
  • 0.3.4                                ...           a month ago
  • 0.3.3                                ...           2 months ago
  • 0.3.3-alpha                                ...           2 months ago
  • 0.3.2                                ...           2 months ago
  • 0.3.1                                ...           2 months ago
  • 0.3.0                                ...           3 months ago
  • 0.3.0-beta.14                                ...           3 months ago
  • 0.3.0-beta.13                                ...           3 months ago
  • 0.3.0-beta.12                                ...           3 months ago
  • 0.3.0-beta.11                                ...           4 months ago
  • 0.3.0-beta.10                                ...           4 months ago
  • 0.3.0-beta.9                                ...           4 months ago
  • 0.3.0-beta.8                                ...           4 months ago
  • 0.3.0-beta.7                                ...           4 months ago
  • 0.3.0-beta.6                                ...           4 months ago
  • 0.3.0-beta.5                                ...           4 months ago
  • 0.3.0-beta.3                                ...           5 months ago
  • 0.3.0-beta.4                                ...           5 months ago
  • 0.2.1                                ...           6 months ago
  • 0.3.0-alpha.2                                ...           7 months ago
  • 0.2.0-alpha.5                                ...           10 months ago
  • 0.2.0-alpha.1                                ...           a year ago
  • 0.0.1                                ...           a year ago
Downloads
Today 0
This Week 13
This Month 38
Last Day 1
Last Week 25
Last Month 16
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |