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.
 

35 lines
1.1 KiB

// Code generated DO NOT EDIT
// htmlformcontrolscollection.go
package dom
import "syscall/js"
type HTMLFormControlsCollectionIFace interface {
Item(args ...interface{}) Element
GetLength() int
NamedItem(args ...interface{})
}
type HTMLFormControlsCollection struct {
Value
}
func JSValueToHTMLFormControlsCollection(val js.Value) HTMLFormControlsCollection {
return HTMLFormControlsCollection{Value: JSValueToValue(val)}
}
func (v Value) AsHTMLFormControlsCollection() HTMLFormControlsCollection {
return HTMLFormControlsCollection{Value: v}
}
func NewHTMLFormControlsCollection(args ...interface{}) HTMLFormControlsCollection {
return HTMLFormControlsCollection{Value: JSValueToValue(js.Global().Get("HTMLFormControlsCollection").New(args...))}
}
func (h HTMLFormControlsCollection) Item(args ...interface{}) Element {
val := h.Call("item", args...)
return JSValueToElement(val.JSValue())
}
func (h HTMLFormControlsCollection) GetLength() int {
val := h.Get("length")
return val.Int()
}
func (h HTMLFormControlsCollection) NamedItem(args ...interface{}) {
h.Call("namedItem", args...)
}