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.
 

20 lines
474 B

// DO NOT EDIT - generated file
package customelements
import "syscall/js"
import dom "github.com/brettlangdon/go-dom/v1"
var c *dom.CustomElementRegistry
func init() {
c = dom.NewCustomElementRegistry(js.Global().Get("customElements"))
}
func Define(name string, constructor interface{}) dom.Value {
return c.Define(name, constructor)
}
func Get(name string) dom.Value {
return c.Get(name)
}
func WhenDefined(name string) *dom.Promise {
return c.WhenDefined(name)
}