Versions in this module Expand all Collapse all v2 v2.0.0 Jun 12, 2022 Changes in this version + const TypeBoolean — js/wasm + const TypeFunction — js/wasm + const TypeNull — js/wasm + const TypeNumber — js/wasm + const TypeObject — js/wasm + const TypeString — js/wasm + const TypeSymbol — js/wasm + const TypeUndefined — js/wasm + func Alert(a ...any) — js/wasm + func Alertf(format string, a ...any) — js/wasm + func Append(a Appendable) — js/wasm + func ArrayBufferToBytes(src Value) []byte — js/wasm + func BindValue(elm any, name string, val *string, cb func(string, string)) — js/wasm + func GoBytes(src Value) []byte — js/wasm + func Prepend(a Appendable) — js/wasm + func Redirect(newURL string) — js/wasm + func RemoveChild(x any) — js/wasm + func Window() js.Value — js/wasm + type Appendable interface — js/wasm + Ref func() Value + type Element interface — js/wasm + Add func(clz string, at ...string) Element + Append func(child Appendable, at ...string) Element + Attr func(a string, at ...string) string + Bind func(name string, val *string, cb func(string, string)) Element + Blur func(at ...string) Element + Click func(at ...string) Element + Empty func() Element + Files func() []File + Foucs func(at ...string) Element + HTML func() HTML + Has func(clz string, at ...string) bool + On func(typ string, fn func(sender Element), at ...string) Element + OnChange func(fn func(sender Element), at ...string) Element + OnClick func(fn func(sender Element), at ...string) Element + Prepend func(child Appendable, at ...string) Element + Prop func(p string, at ...string) Value + Query func(selector string) Element + QueryAll func(selector string) Elements + Relese func() + Remove func(clz string, at ...string) Element + Replace func(oldClz, newClz string, at ...string) Element + SetAttr func(a, value string, at ...string) Element + SetHTML func(html HTML) Element + SetProp func(p string, val any, at ...string) Element + SetText func(txt string) Element + SetValue func(val string) Element + Tattoo func() string + Text func() string + Toggle func(clz string, at ...string) Element + Trigger func(name string) Element + Value func() string + func CreateElement(tag string) Element + func ElementOf(x any) Element + func Query(selector string) Element + type Elements []Element — js/wasm + func ElementsOf(v Value) (ret Elements) + func QueryAll(selector string) Elements + func (e Elements) Add(clz string) Elements + func (e Elements) Has(clz string) Elements + func (e Elements) Prop(p string) (ret []Value) + func (e Elements) Remove(clz string) Elements + func (e Elements) Replace(oldClz, newClz string) Elements + func (e Elements) SetAttr(a, val string) Elements + func (e Elements) SetProp(a string, val Value) Elements + func (e Elements) SetValue(val string) Elements + func (e Elements) Toggle(clz string) Elements + func (e Elements) Value() (ret []string) + func (lst Elements) Attr(a string) (ret []string) + func (lst Elements) Filter(p func(Element) bool) (ret Elements) + func (lst Elements) FilterNot(p func(Element) bool) Elements + func (lst Elements) Foreach(fn func(int, Element)) + func (lst Elements) Length() int + type File Value — js/wasm + func FileOf(x any, opts ...string) File + func (f File) JSValue() Value + func (f File) LastModified() time.Time + func (f File) Name() string + func (f File) Type() string + func (f File) WebkitRelativePath() string + type Func = js.Func — js/wasm + func FuncOf(fn JSFunc) Func + type HTML string — js/wasm + func (h HTML) JSValue() Value + type JSFunc = func(Value, []Value) any — js/wasm + type Listener map[string]Func — js/wasm + func (l Listener) Add(target Value, typ string, fn JSFunc) Func + func (l Listener) Release() + func (l Listener) Remove(target Value, typ string) + type Plain string — js/wasm + func (p Plain) JSValue() Value + func (p Plain) Ref() Value + type Type = js.Type — js/wasm + type Value = js.Value — js/wasm + func Null() Value + func Uint8Array(src []byte) Value + func Undefined() Value + func ValueOf(x any) Value + type Wrapper interface — js/wasm + JSValue func() Value Other modules containing this package github.com/dairaga/js