event

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: 5 Imported by: 1

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(typeevent string, init ...map[string]interface{}) (Event, error)

New Create a event

func NewFromJSObject

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

func (Event) Bubbles

func (e Event) Bubbles() (bool, error)

func (Event) Cancelable

func (e Event) Cancelable() (bool, error)

func (Event) Composed

func (e Event) Composed() (bool, error)

func (Event) CurrentTarget

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

func (Event) EventPhase

func (e Event) EventPhase() (int, error)

func (Event) Event_

func (e Event) Event_() Event

func (Event) IsTrusted

func (e Event) IsTrusted() (bool, error)

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)

func (Event) Type

func (e Event) Type() (string, 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