overlay

package
v0.0.0-...-5a689ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2018 License: ISC Imports: 3 Imported by: 0

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

Documentation

Overview

Package overlay creates a simple 'window' overlay system for gopherjs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Overlay

type Overlay struct {
	dom.Element
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL