Documentation
¶
Rendered for js/wasm
Index ¶
- Constants
- func Alert(a ...any)
- func Alertf(format string, a ...any)
- func Append(a Appendable)
- func ArrayBufferToBytes(src Value) []byte
- func BindValue(elm any, name string, val *string, cb func(string, string))
- func GoBytes(src Value) []byte
- func Prepend(a Appendable)
- func Redirect(newURL string)
- func RemoveChild(x any)
- func Window() js.Value
- type Appendable
- type Element
- type Elements
- func (e Elements) Add(clz string) Elements
- 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 (e Elements) Has(clz string) Elements
- func (lst Elements) Length() int
- 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)
- type File
- type Func
- type HTML
- type JSFunc
- type Listener
- type Plain
- type Type
- type Value
- type Wrapper
Constants ¶
View Source
const ( TypeUndefined = js.TypeUndefined TypeNull = js.TypeNull TypeBoolean = js.TypeBoolean TypeNumber = js.TypeNumber TypeString = js.TypeString TypeSymbol = js.TypeSymbol TypeObject = js.TypeObject TypeFunction = js.TypeFunction )
Variables ¶
This section is empty.
Functions ¶
func Append ¶
func Append(a Appendable)
func ArrayBufferToBytes ¶
func Prepend ¶
func Prepend(a Appendable)
func RemoveChild ¶
func RemoveChild(x any)
Types ¶
type Appendable ¶
type Element ¶
type Element interface {
Appendable
Tattoo() string
Query(selector string) Element
QueryAll(selector string) Elements
Append(child Appendable, at ...string) Element
Prepend(child Appendable, at ...string) Element
Prop(p string, at ...string) Value
SetProp(p string, val any, at ...string) Element
Attr(a string, at ...string) string
SetAttr(a, value string, at ...string) Element
Text() string
SetText(txt string) Element
HTML() HTML
SetHTML(html HTML) Element
Value() string
SetValue(val string) Element
Files() []File
Add(clz string, at ...string) Element
Remove(clz string, at ...string) Element
Has(clz string, at ...string) bool
Replace(oldClz, newClz string, at ...string) Element
Toggle(clz string, at ...string) Element
On(typ string, fn func(sender Element), at ...string) Element
OnClick(fn func(sender Element), at ...string) Element
OnChange(fn func(sender Element), at ...string) Element
Click(at ...string) Element
Foucs(at ...string) Element
Blur(at ...string) Element
Empty() Element
Relese()
Trigger(name string) Element
Bind(name string, val *string, cb func(string, string)) Element
}
func CreateElement ¶
type Elements ¶
type Elements []Element
func ElementsOf ¶
type Value ¶
func Uint8Array ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.