package
0.0.0-20180612134603-5a689ece0d3e
Repository: https://github.com/mjkwoolnough/gopherjs.git
Documentation: pkg.go.dev
# README
overlay
-- import "github.com/MJKWoolnough/gopherjs/overlay"
Package overlay creates a simple 'window' overlay system for gopherjs
Usage
type Overlay
type Overlay struct {
dom.Element
}
Overlay is a dom.Element which
func New
func New(e dom.Node) *Overlay
New wraps a dom.Element in an Overlay
func (*Overlay) Close
func (o *Overlay) Close() error
Close closes the overlay, and runs any given onClose handle funcs
func (*Overlay) OnClose
func (o *Overlay) OnClose(f func())
OnClose adds an onClose handler for the overlay
# Functions
New wraps a dom.Element in an Overlay.