Skip to content

A sketch module for creating an complex UI with a webview

Notifications You must be signed in to change notification settings

leonardpauli/sketch-module-web-view

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FORK: of skpm/sketch-module-web-view
DIFF: personal changes, eg.:

  • using @leonardpauli/cocoascript-class with support-older-jsc (until PR is merged)
  • added didClose handler (temporary dev flow fix, prevents crash on reload) USAGE: npm i @leonardpauli/sketch-module-web-view@1.1.7-lp, then see example usage in LayerRenamer

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

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

About

A sketch module for creating an complex UI with a webview

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%