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.
 

38 lines
961 B

// Code generated DO NOT EDIT
// radionodelist.go
package dom
import "syscall/js"
type RadioNodeListIFace interface {
Item(args ...interface{}) Node
GetLength() int
GetValue() string
SetValue(string)
}
type RadioNodeList struct {
Value
}
func JSValueToRadioNodeList(val js.Value) RadioNodeList {
return RadioNodeList{Value: JSValueToValue(val)}
}
func (v Value) AsRadioNodeList() RadioNodeList { return RadioNodeList{Value: v} }
func NewRadioNodeList(args ...interface{}) RadioNodeList {
return RadioNodeList{Value: JSValueToValue(js.Global().Get("RadioNodeList").New(args...))}
}
func (r RadioNodeList) Item(args ...interface{}) Node {
val := r.Call("item", args...)
return JSValueToNode(val.JSValue())
}
func (r RadioNodeList) GetLength() int {
val := r.Get("length")
return val.Int()
}
func (r RadioNodeList) GetValue() string {
val := r.Get("value")
return val.String()
}
func (r RadioNodeList) SetValue(val string) {
r.Set("value", val)
}