customevent

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented   = errors.New("Browser not implemented EventCustom")
	ErrNotAnCustomEvent = errors.New("Object is not a customEvent")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get teh JS interface of event

Types

type CustomEvent

type CustomEvent struct {
	event.Event
}

CustomEvent CustomEvent struct

func New

func New(message, detail interface{}) (CustomEvent, error)

New Create a CustomEvent

func NewFromJSObject

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

func (CustomEvent) CustomEvent_

func (c CustomEvent) CustomEvent_() CustomEvent

func (CustomEvent) Detail

func (c CustomEvent) Detail() (interface{}, error)

type CustomEventFrom

type CustomEventFrom interface {
	CustomEvent_() CustomEvent
}

Jump to

Keyboard shortcuts

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