Versions in this module Expand all Collapse all v0 v0.4.0 Jun 23, 2020 Changes in this version + const MouseLeft + var Body = getFirstWithTag("body") + var Doc = GetDocument() + var Head = getFirstWithTag("head") + func ConsoleLog(args ...interface{}) + func Loop() + func RegisterEventType(typ string, fnc EventConstructor) + type AttachShadowOpts struct + DeligatesFocus bool + Open bool + type Auto struct + func (Auto) String() string + type BaseEvent struct + func (e *BaseEvent) Bubbles() bool + func (e *BaseEvent) ButtonAttr() string + func (e *BaseEvent) Cancelable() bool + func (e *BaseEvent) Composed() bool + func (e *BaseEvent) CurrentTarget() *Element + func (e *BaseEvent) DefaultPrevented() bool + func (e *BaseEvent) IsTrusted() bool + func (e *BaseEvent) JSValue() js.Ref + func (e *BaseEvent) Key() string + func (e *BaseEvent) KeyCode() string + func (e *BaseEvent) Path() NodeList + func (e *BaseEvent) PreventDefault() + func (e *BaseEvent) StopImmediatePropagation() + func (e *BaseEvent) StopPropagation() + func (e *BaseEvent) Target() *Element + func (e *BaseEvent) Type() string + type Button struct + func NewButton(s string) *Button + func (b *Button) OnClick(h EventHandler) + type Color string + type Document struct + func GetDocument() *Document + func (d *Document) CreateElement(tag string) *Element + func (d *Document) CreateElementNS(ns string, tag string) *Element + func (d *Document) GetElementById(id string) *Element + func (d *Document) GetElementsByTagName(tag string) NodeList + func (d *Document) NewButton(s string) *Button + func (d *Document) NewInput(typ string) *Input + func (d *Document) QuerySelector(qu string) *Element + func (d *Document) QuerySelectorAll(qu string) NodeList + type Element struct + func AsElement(v js.Value) *Element + func NewElement(tag string) *Element + func (e *Element) AsHTMLElement() *HTMLElement + func (e *Element) AttachShadow(opts AttachShadowOpts) *ShadowRoot + func (e *Element) ClassList() *TokenList + func (e *Element) ClassName() string + func (e *Element) ClientHeight() int + func (e *Element) ClientLeft() int + func (e *Element) ClientTop() int + func (e *Element) ClientWidth() int + func (e *Element) ComputedName() string + func (e *Element) ComputedRole() string + func (e *Element) GetAttribute(k string) js.Value + func (e *Element) GetBoundingClientRect() Rect + func (e *Element) Id() string + func (e *Element) InnerHTML() string + func (e *Element) InsertAdjacentElement(position Position, newElement *Element) js.Value + func (e *Element) LocalName() string + func (e *Element) NamespaceURI() string + func (e *Element) OnClick(h MouseEventHandler) + func (e *Element) OnMouseDown(h MouseEventHandler) + func (e *Element) OnMouseMove(h MouseEventHandler) + func (e *Element) OnMouseUp(h MouseEventHandler) + func (e *Element) OuterHTML() string + func (e *Element) Prefix() string + func (e *Element) RemoveAttribute(k string) + func (e *Element) ScrollHeight() int + func (e *Element) ScrollLeft() int + func (e *Element) ScrollLeftMax() int + func (e *Element) ScrollTop() int + func (e *Element) ScrollTopMax() int + func (e *Element) ScrollWidth() int + func (e *Element) SetAttribute(k string, v interface{}) + func (e *Element) SetClassName(v string) + func (e *Element) SetId(v string) + func (e *Element) SetInnerHTML(v string) + func (e *Element) SetOuterHTML(v string) + func (e *Element) SetScrollLeft(v int) + func (e *Element) SetScrollTop(v int) + func (e *Element) SetSlot(v string) + func (e *Element) SetTabStop(v bool) + func (e *Element) SetUndoScope(v bool) + func (e *Element) ShadowRoot() *ShadowRoot + func (e *Element) Slot() string + func (e *Element) TabStop() bool + func (e *Element) TagName() string + func (e *Element) UndoManager() js.Value + func (e *Element) UndoScope() bool + type Em float64 + func (v Em) String() string + type Event interface + Bubbles func() bool + ButtonAttr func() string + Cancelable func() bool + Composed func() bool + CurrentTarget func() *Element + DefaultPrevented func() bool + IsTrusted func() bool + Key func() string + KeyCode func() string + Path func() NodeList + PreventDefault func() + StopImmediatePropagation func() + StopPropagation func() + Target func() *Element + Type func() string + func ConvertEvent(v js.Value) Event + type EventConstructor func(e BaseEvent) Event + type EventHandler func(Event) + type EventTarget interface + AddEventListener func(typ string, h EventHandler) + type HTMLElement struct + func (e *HTMLElement) AccessKey() string + func (e *HTMLElement) AccessKeyLabel() string + func (e *HTMLElement) ContentEditable() string + func (e *HTMLElement) Dataset() js.Value + func (e *HTMLElement) Dir() string + func (e *HTMLElement) Draggable() bool + func (e *HTMLElement) Dropzone() *TokenList + func (e *HTMLElement) Hidden() bool + func (e *HTMLElement) Inert() bool + func (e *HTMLElement) InnerText() string + func (e *HTMLElement) IsContentEditable() bool + func (e *HTMLElement) ItemId() string + func (e *HTMLElement) ItemProp() *TokenList + func (e *HTMLElement) ItemRef() *TokenList + func (e *HTMLElement) ItemScope() bool + func (e *HTMLElement) ItemType() *TokenList + func (e *HTMLElement) ItemValue() js.Value + func (e *HTMLElement) Lang() string + func (e *HTMLElement) NoModule() bool + func (e *HTMLElement) Nonce() js.Value + func (e *HTMLElement) OffsetHeight() float64 + func (e *HTMLElement) OffsetLeft() float64 + func (e *HTMLElement) OffsetParent() *Element + func (e *HTMLElement) OffsetTop() float64 + func (e *HTMLElement) OffsetWidth() float64 + func (e *HTMLElement) SetAccessKey(v string) + func (e *HTMLElement) SetContentEditable(v string) + func (e *HTMLElement) SetDir(v string) + func (e *HTMLElement) SetDraggable(v bool) + func (e *HTMLElement) SetHidden(v bool) + func (e *HTMLElement) SetInert(v bool) + func (e *HTMLElement) SetInnerText(v string) + func (e *HTMLElement) SetItemId(v string) + func (e *HTMLElement) SetItemScope(v bool) + func (e *HTMLElement) SetItemValue(v js.Value) + func (e *HTMLElement) SetLang(v string) + func (e *HTMLElement) SetNoModule(v bool) + func (e *HTMLElement) SetNonce(v js.Value) + func (e *HTMLElement) SetSpellcheck(v bool) + func (e *HTMLElement) SetStyle(v *Style) + func (e *HTMLElement) SetTabIndex(v int) + func (e *HTMLElement) SetTitle(v string) + func (e *HTMLElement) SetTranslate(v bool) + func (e *HTMLElement) Spellcheck() bool + func (e *HTMLElement) Style() *Style + func (e *HTMLElement) TabIndex() int + func (e *HTMLElement) Title() string + func (e *HTMLElement) Translate() bool + type Input struct + func NewInput(typ string) *Input + func (inp *Input) OnChange(h EventHandler) + func (inp *Input) OnInput(h EventHandler) + func (inp *Input) SetName(name string) + func (inp *Input) SetType(typ string) + func (inp *Input) SetValue(val interface{}) + func (inp *Input) Value() string + type MouseButton int + type MouseEvent struct + func (e *MouseEvent) AltKey() bool + func (e *MouseEvent) Button() MouseButton + func (e *MouseEvent) ButtonAttr() string + func (e *MouseEvent) ClientPos() Point + func (e *MouseEvent) CtrlKey() bool + func (e *MouseEvent) Key() string + func (e *MouseEvent) KeyCode() string + func (e *MouseEvent) MetaKey() bool + func (e *MouseEvent) OffsetPos() Point + func (e *MouseEvent) PagePos() Point + func (e *MouseEvent) ScreenPos() Point + func (e *MouseEvent) ShiftKey() bool + type MouseEventHandler func(*MouseEvent) + type Node interface + AppendChild func(n Node) + BaseURI func() string + ChildNodes func() NodeList + Contains func(n Node) bool + IsEqualNode func(n Node) bool + IsSameNode func(n Node) bool + NodeName func() string + ParentElement func() *Element + ParentNode func() Node + RemoveChild func(n Node) Node + ReplaceChild func(n, old Node) Node + SetTextContent func(s string) + TextContent func() string + type NodeBase struct + func (e *NodeBase) AddCustomEventListener(typ string, h EventHandler, values js.Value) + func (e *NodeBase) AddErrorListener(h func(err error)) + func (e *NodeBase) AddEventListener(typ string, h EventHandler) + func (e *NodeBase) AddPassiveEventListener(typ string, h EventHandler) + func (e *NodeBase) AppendChild(n Node) + func (e *NodeBase) BaseURI() string + func (e *NodeBase) ChildNodes() NodeList + func (e *NodeBase) Clone() Node + func (e *NodeBase) Contains(n Node) bool + func (e *NodeBase) InsertAfter(a, b Node) + func (e *NodeBase) InsertBefore(a, b Node) + func (e *NodeBase) IsEqualNode(n Node) bool + func (e *NodeBase) IsSameNode(n Node) bool + func (e *NodeBase) JSValue() js.Ref + func (e *NodeBase) NodeName() string + func (e *NodeBase) ParentElement() *Element + func (e *NodeBase) ParentNode() Node + func (e *NodeBase) Remove() + func (e *NodeBase) RemoveChild(n Node) Node + func (e *NodeBase) RemoveCustomEventListener(typ string, h EventHandler, values js.Value) + func (e *NodeBase) RemoveEventListener(typ string, h EventHandler) + func (e *NodeBase) RemovePassiveEventListener(typ string, h EventHandler) + func (e *NodeBase) ReplaceChild(n, old Node) Node + func (e *NodeBase) SetTextContent(s string) + func (e *NodeBase) SetValue(a interface{}) + func (e *NodeBase) TextContent() string + func (e *NodeBase) Value() string + type NodeList []*Element + func AsNodeList(v js.Value) NodeList + type Perc int + func (v Perc) String() string + type Point = image.Point + type Position string + const AfterBegin + const AfterEnd + const BeforeBegin + const BeforeEnd + type Px int + func (v Px) String() string + type Rect = image.Rectangle + type Rem int + func (v Rem) String() string + type ShadowRoot struct + func AsShadowRoot(v js.Value) *ShadowRoot + func (r *ShadowRoot) Host() *Element + func (r *ShadowRoot) InnerHTML() string + func (r *ShadowRoot) IsOpen() bool + func (r *ShadowRoot) SetInnerHTML(s string) + type Style struct + func AsStyle(v js.Value) *Style + func (s *Style) Set(k string, v interface{}) + func (s *Style) SetHeight(v Unit) + func (s *Style) SetMarginsRaw(m string) + func (s *Style) SetWidth(v Unit) + type TokenList struct + func AsTokenList(v js.Value) *TokenList + func (t *TokenList) Add(class ...interface{}) + func (t *TokenList) Remove(class ...interface{}) + type Unit interface + String func() string + type Value = js.Wrapper + type Vh int + func (v Vh) String() string + type Vmax int + func (v Vmax) String() string + type Vmin int + func (v Vmin) String() string + type Vw int + func (v Vw) String() string + type Window struct + func GetWindow() *Window + func (w *Window) AddEventListener(typ string, h EventHandler) + func (w *Window) JSValue() js.Ref + func (w *Window) OnResize(fnc func(e Event)) + func (w *Window) Open(url, windowName string, windowFeatures map[string]string) + func (w *Window) SetLocation(url string)