htmlcommon

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 3 Imported by: 7

Documentation

Overview

Package htmlcommon is a common type package

Moving types that is references by multiple standard into this one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeforeUnloadEvent

type BeforeUnloadEvent struct {
	domcore.Event
}

class: BeforeUnloadEvent

func BeforeUnloadEventFromJS

func BeforeUnloadEventFromJS(value js.Value) *BeforeUnloadEvent

BeforeUnloadEventFromJS is casting a js.Value into BeforeUnloadEvent.

func BeforeUnloadEventFromWrapper

func BeforeUnloadEventFromWrapper(input core.Wrapper) *BeforeUnloadEvent

BeforeUnloadEventFromJS is casting from something that holds a js.Value into BeforeUnloadEvent.

func (*BeforeUnloadEvent) ReturnValue

func (_this *BeforeUnloadEvent) ReturnValue() string

ReturnValue returning attribute 'returnValue' with type string (idl: DOMString).

func (*BeforeUnloadEvent) SetReturnValue

func (_this *BeforeUnloadEvent) SetReturnValue(value string)

SetReturnValue setting attribute 'returnValue' with type string (idl: DOMString).

type FrameRequestCallback

type FrameRequestCallback js.Func

FrameRequestCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func FrameRequestCallbackToJS

func FrameRequestCallbackToJS(callback FrameRequestCallbackFunc) *FrameRequestCallback

type FrameRequestCallbackFunc

type FrameRequestCallbackFunc func(time float64)

callback: FrameRequestCallback

func FrameRequestCallbackFromJS

func FrameRequestCallbackFromJS(_value js.Value) FrameRequestCallbackFunc

type OnBeforeUnloadEventHandler

type OnBeforeUnloadEventHandler js.Func

OnBeforeUnloadEventHandler is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type OnBeforeUnloadEventHandlerFunc

type OnBeforeUnloadEventHandlerFunc func(event *domcore.Event) *string

callback: OnBeforeUnloadEventHandlerNonNull

func OnBeforeUnloadEventHandlerFromJS

func OnBeforeUnloadEventHandlerFromJS(_value js.Value) OnBeforeUnloadEventHandlerFunc

type OnErrorEventHandler

type OnErrorEventHandler js.Func

OnErrorEventHandler is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func OnErrorEventHandlerToJS

func OnErrorEventHandlerToJS(callback OnErrorEventHandlerFunc) *OnErrorEventHandler

type OnErrorEventHandlerFunc

type OnErrorEventHandlerFunc func(event *Union, source *string, lineno *uint, colno *uint, _error js.Value) interface{}

callback: OnErrorEventHandlerNonNull

func OnErrorEventHandlerFromJS

func OnErrorEventHandlerFromJS(_value js.Value) OnErrorEventHandlerFunc

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

type WorkerType

type WorkerType int

enum: WorkerType

const (
	ClassicWorkerType WorkerType = iota
	ModuleWorkerType
)

func WorkerTypeFromJS

func WorkerTypeFromJS(value js.Value) WorkerType

WorkerTypeFromJS is converting a javascript value into a WorkerType enum value.

func (*WorkerType) JSValue

func (this *WorkerType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (WorkerType) Value

func (this WorkerType) Value() string

Value is converting this into javascript defined string value

Jump to

Keyboard shortcuts

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