window

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented Window")
	ErrNotAWindow     = errors.New("Object is not a Window")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of formdata

Types

type Window

type Window struct {
	eventtarget.EventTarget
}

func New

func New() (Window, error)

func NewFromJSObject

func NewFromJSObject(obj js.Value) (Window, error)

func (Window) Document

func (w Window) Document() (document.Document, error)

func (Window) History

func (w Window) History() (history.History, error)

func (Window) IndexdedDB

func (w Window) IndexdedDB() (indexeddb.IDBFactory, error)

func (Window) LocalStorage

func (w Window) LocalStorage() (storage.Storage, error)

func (Window) Location

func (w Window) Location() (location.Location, error)

func (Window) Navigator added in v1.2.0

func (w Window) Navigator() (navigator.Navigator, error)

func (Window) OnHashChange

func (w Window) OnHashChange(handler func(e event.Event)) (js.Func, error)

func (Window) OnPopState

func (w Window) OnPopState(handler func(e event.Event)) (js.Func, error)

func (Window) SessionStorage

func (w Window) SessionStorage() (storage.Storage, error)

func (Window) Window_

func (w Window) Window_() Window

type WindowFrom

type WindowFrom interface {
	Window_() Window
}

Jump to

Keyboard shortcuts

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