event

package
v1.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAnEvent = errors.New("Object is not an Event")
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented Event")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of event

Types

type Event

type Event struct {
	baseobject.BaseObject
}

Event Event struct

func New

func New(message string) (Event, error)

New Create a event

func NewFromJSObject

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

func (Event) CurrentTarget

func (e Event) CurrentTarget() (interface{}, error)

func (Event) Event_

func (e Event) Event_() Event

func (Event) PreventDefault

func (e Event) PreventDefault() error

func (Event) StopImmediatePropagation

func (e Event) StopImmediatePropagation() error

func (Event) StopPropagation

func (e Event) StopPropagation() error

func (Event) Target

func (e Event) Target() (interface{}, error)

type EventFrom

type EventFrom interface {
	Event_() Event
}

Jump to

Keyboard shortcuts

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