Documentation ¶
Rendered for js/wasm
Index ¶
- Variables
- func Append(x interface{})
- func IsJSFunc(v Wrapper) bool
- func IsJSObject(v Wrapper) bool
- type Element
- func (el *Element) Add(names ...string) *Element
- func (el *Element) AddAttrs(attrs map[string]string) *Element
- func (el *Element) Append(child interface{}) *Element
- func (el *Element) Attr(a string) string
- func (el *Element) Call(m string, args ...interface{}) Value
- func (el *Element) Contains(name string) bool
- func (el *Element) Disable()
- func (el *Element) Disabled() bool
- func (el *Element) Enable()
- func (el *Element) HTML() HTML
- func (el *Element) HasAttr(a string) bool
- func (el *Element) Hidden() bool
- func (el *Element) Hide()
- func (el *Element) ID() string
- func (el *Element) OK() bool
- func (el *Element) Prepend(child interface{}) *Element
- func (el *Element) Prop(p string) Value
- func (el *Element) Query(selectors string) *Element
- func (el *Element) QueryAll(selectors string) Elements
- func (el *Element) Release()
- func (el *Element) Remove(names ...string) *Element
- func (el *Element) RemoveAttr(a string) *Element
- func (el *Element) RemoveStyle(p string) *Element
- func (el *Element) Replace(oldName, newName string) *Element
- func (el *Element) SetAttr(a, v string) *Element
- func (el *Element) SetHTML(h HTML) *Element
- func (el *Element) SetID(id string)
- func (el *Element) SetProp(p string, x interface{}) *Element
- func (el *Element) SetStyle(p, v string) *Element
- func (el *Element) SetText(t string) *Element
- func (el *Element) Show()
- func (el *Element) Style(p string) string
- func (el *Element) TagName() string
- func (el *Element) Text() string
- func (el *Element) Toggle(name string) *Element
- type Elements
- type Event
- type EventTarget
- type Func
- type HTML
- type TEvent
- type TEventTarget
- type Type
- type Value
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ValueOf = js.ValueOf FuncOf = js.FuncOf )
Functions ¶
func IsJSObject ¶
Types ¶
type Element ¶
type Element struct {
*EventTarget
}
func (*Element) RemoveAttr ¶
func (*Element) RemoveStyle ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) Target ¶
func (e *Event) Target() TEventTarget
type EventTarget ¶
type EventTarget struct {
// contains filtered or unexported fields
}
func EventTargetOf ¶
func EventTargetOf(v Value) *EventTarget
func (*EventTarget) JSValue ¶
func (t *EventTarget) JSValue() Value
func (*EventTarget) On ¶
func (t *EventTarget) On(event string, fn Func)
func (*EventTarget) Release ¶
func (t *EventTarget) Release()
type TEvent ¶
type TEvent interface { Wrapper Type() string Target() TEventTarget }
type TEventTarget ¶
Click to show internal directories.
Click to hide internal directories.