Documentation ¶
Overview ¶
Package wasm is a WASM helper for Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClassList ¶ added in v0.0.2
ClassList represents CSS class list of an element.
func GetClassList ¶
GetClassList returns a ClassList of the object.
func (ClassList) Contains ¶ added in v0.0.2
Contains returns true if a class list contains the specific class.
type DocHolder ¶
type DocHolder struct {
// contains filtered or unexported fields
}
DocHolder is a main entry object. Create it by calling GetDoc().
type EventListener ¶
type EventListener struct {
// contains filtered or unexported fields
}
EventListener is an event listener.
func NewEventListener ¶
NewEventListener creates a new event listener.
func (*EventListener) Add ¶
func (e *EventListener) Add(elt js.Value)
Add adds the event listener to a JS object.
func (*EventListener) Remove ¶
func (e *EventListener) Remove(elt js.Value)
Remove removes the event listener from a JS object.
Click to show internal directories.
Click to hide internal directories.