Web API package for use when compling Go to WASM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

32 lines
896 B

// Code generated DO NOT EDIT
// htmlallcollection.go
package dom
import "syscall/js"
type HTMLAllCollectionIFace interface {
Item(args ...interface{})
GetLength() int
NamedItem(args ...interface{})
}
type HTMLAllCollection struct {
Value
}
func JSValueToHTMLAllCollection(val js.Value) HTMLAllCollection {
return HTMLAllCollection{Value: JSValueToValue(val)}
}
func (v Value) AsHTMLAllCollection() HTMLAllCollection { return HTMLAllCollection{Value: v} }
func NewHTMLAllCollection(args ...interface{}) HTMLAllCollection {
return HTMLAllCollection{Value: JSValueToValue(js.Global().Get("HTMLAllCollection").New(args...))}
}
func (h HTMLAllCollection) Item(args ...interface{}) {
h.Call("item", args...)
}
func (h HTMLAllCollection) GetLength() int {
val := h.Get("length")
return val.Int()
}
func (h HTMLAllCollection) NamedItem(args ...interface{}) {
h.Call("namedItem", args...)
}