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.
 

61 lines
1.7 KiB

// Code generated DO NOT EDIT
// shadowroot.go
package dom
import "syscall/js"
type ShadowRootIFace interface {
AddEventListener(args ...interface{})
AppendChild(args ...interface{}) Node
GetBaseURI() string
GetChildNodes() NodeList
CloneNode(args ...interface{}) Node
CompareDocumentPosition(args ...interface{}) int
Contains(args ...interface{}) bool
DispatchEvent(args ...interface{}) bool
GetFirstChild() Node
GetRootNode(args ...interface{}) Node
HasChildNodes(args ...interface{}) bool
GetHost() Element
InsertBefore(args ...interface{}) Node
GetIsConnected() bool
IsDefaultNamespace(args ...interface{}) bool
IsEqualNode(args ...interface{}) bool
IsSameNode(args ...interface{}) bool
GetLastChild() Node
LookupNamespaceURI(args ...interface{}) string
LookupPrefix(args ...interface{}) string
GetMode() ShadowRootMode
GetNextSibling() Node
GetNodeName() string
GetNodeType() int
GetNodeValue() string
SetNodeValue(string)
Normalize(args ...interface{})
GetOwnerDocument() Document
GetParentElement() Element
GetParentNode() Node
GetPreviousSibling() Node
RemoveChild(args ...interface{}) Node
RemoveEventListener(args ...interface{})
ReplaceChild(args ...interface{}) Node
GetTextContent() string
SetTextContent(string)
}
type ShadowRoot struct {
Value
DocumentFragment
Node
EventTarget
}
func jsValueToShadowRoot(val js.Value) ShadowRoot { return ShadowRoot{Value: Value{Value: val}} }
func (v Value) AsShadowRoot() ShadowRoot { return ShadowRoot{Value: v} }
func (s ShadowRoot) GetHost() Element {
val := s.Get("host")
return jsValueToElement(val.JSValue())
}
func (s ShadowRoot) GetMode() ShadowRootMode {
val := s.Get("mode")
return jsValueToShadowRootMode(val.JSValue())
}