A sketch module for creating an complex UI with a webview
Switch branches/tags
Nothing to show
Clone or download
Latest commit e7951a2 Oct 20, 2018
Permalink
Failed to load latest commit information.
.vscode add some docs Apr 4, 2018
docs Merge branch 'master' into wkwebview Oct 20, 2018
lib add insertJS method Oct 20, 2018
.eslintrc.yml move to webview Jul 11, 2018
.gitignore move to an electron-like api Dec 1, 2017
README.md add some docs Apr 4, 2018
package.json add insertJS method Oct 20, 2018
remote.js add insertJS method Oct 20, 2018

README.md

sketch-module-web-view

A Sketch module for creating a complex UI with a webview. The API is mimicking the BrowserWindow API of Electron.

Installation

To use this module in your Sketch plugin you need a bundler utility like skpm and add it as a dependency:

npm install -S sketch-module-web-view

The version 2.x is only compatible with Sketch >= 51. If you need compatibility with previous versions of Sketch, use the version 1.x

Usage

import BrowserWindow from 'sketch-module-web-view'

export default function() {
  const options = {
    identifier: 'unique.id',
  }

  const browserWindow = new BrowserWindow(options)

  browserWindow.loadURL('./my-screen.html')
}

Documentation

API References

License

MIT