The CustomElementRegistry interface provides methods for registering
elements and querying registered elements. To get an instance
it, use the web.window.customElements
property.
The CustomElementRegistry interface provides methods for registering elements and querying registered elements. To get an instance it, use the `web.window.customElements` property.
(attach-shadow this shadow-root-init)
Method.
The Element.attachShadow() method attaches a shadow DOM tree
the specified element and returns a reference to its web.ShadowRoot
.
var shadowroot = element.attachShadow(shadowRootInit);
See also: https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow
Method. The Element.attachShadow() method attaches a shadow DOM tree the specified element and returns a reference to its `web.ShadowRoot`. `var shadowroot = element.attachShadow(shadowRootInit);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow`
(composed this)
Property.
The read-only composed property of the web.Event
interface
a web.Boolean
which indicates whether or not the event will
across the shadow DOM boundary into the standard DOM.
var composed = Event.composed;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/composed
Property. The read-only composed property of the `web.Event` interface a `web.Boolean` which indicates whether or not the event will across the shadow DOM boundary into the standard DOM. `var composed = Event.composed;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/composed`
(composed-path this)
Property.
The composedPath() method of the web.Event
interface returns
event’s path which is an array of the objects on which listeners
be invoked. This does not include nodes in shadow trees if the
root was created with its web.ShadowRoot.mode
closed.
var composed = Event.composedPath();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath
Property. The composedPath() method of the `web.Event` interface returns event’s path which is an array of the objects on which listeners be invoked. This does not include nodes in shadow trees if the root was created with its `web.ShadowRoot.mode` closed. `var composed = Event.composedPath();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath`
(create-element this & args)
Method.
In an HTML document, the document.createElement() method creates
HTML element specified by tagName, or an html.HTMLUnknownElement
tagName isn't recognized.
var element = document.createElement(tagName[, options]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement
Method. In an HTML document, the document.createElement() method creates HTML element specified by tagName, or an `html.HTMLUnknownElement` tagName isn't recognized. `var element = document.createElement(tagName[, options]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement`
(custom-elements this)
Property.
The customElements read-only property of the web.Window
interface
a reference to the web.CustomElementRegistry
object, which
be used to register new custom elements and get information about
registered custom elements.
let customElementRegistry = window.customElements;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements
Property. The customElements read-only property of the `web.Window` interface a reference to the `web.CustomElementRegistry` object, which be used to register new custom elements and get information about registered custom elements. `let customElementRegistry = window.customElements;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements`
(define this name constructor options)
Method.
The define() method of the web.CustomElementRegistry
interface
a new custom element.
customElements.define(name, constructor, options);
See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define
Method. The define() method of the `web.CustomElementRegistry` interface a new custom element. `customElements.define(name, constructor, options);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define`
(get this name)
Method.
The get() method of the web.CustomElementRegistry
interface
the constructor for a previously-defined custom element.
constructor = customElements.get(name);
See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/get
Method. The get() method of the `web.CustomElementRegistry` interface the constructor for a previously-defined custom element. `constructor = customElements.get(name);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/get`
(get-root-node this options)
Method.
The getRootNode() method of the web.Node
interface returns
context object's root, which optionally includes the shadow root
it is available.
var root = node.getRootNode(options);
See also: https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode
Method. The getRootNode() method of the `web.Node` interface returns context object's root, which optionally includes the shadow root it is available. `var root = node.getRootNode(options);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode`
(is-connected this)
Property.
The isConnected read-only property of the web.Node
interface
a boolean indicating whether the node is connected (directly
indirectly) to the context object, for example the web.Document
in the case of the normal DOM, or the web.ShadowRoot
in the
of a shadow DOM.
var isItConnected = nodeObjectInstance.isConnected
See also: https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected
Property. The isConnected read-only property of the `web.Node` interface a boolean indicating whether the node is connected (directly indirectly) to the context object, for example the `web.Document` in the case of the normal DOM, or the `web.ShadowRoot` in the of a shadow DOM. `var isItConnected = nodeObjectInstance.isConnected` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected`
(set-composed-path! this val)
Property.
The composedPath() method of the web.Event
interface returns
event’s path which is an array of the objects on which listeners
be invoked. This does not include nodes in shadow trees if the
root was created with its web.ShadowRoot.mode
closed.
var composed = Event.composedPath();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath
Property. The composedPath() method of the `web.Event` interface returns event’s path which is an array of the objects on which listeners be invoked. This does not include nodes in shadow trees if the root was created with its `web.ShadowRoot.mode` closed. `var composed = Event.composedPath();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath`
(set-custom-elements! this val)
Property.
The customElements read-only property of the web.Window
interface
a reference to the web.CustomElementRegistry
object, which
be used to register new custom elements and get information about
registered custom elements.
let customElementRegistry = window.customElements;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements
Property. The customElements read-only property of the `web.Window` interface a reference to the `web.CustomElementRegistry` object, which be used to register new custom elements and get information about registered custom elements. `let customElementRegistry = window.customElements;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements`
(set-is-connected! this val)
Property.
The isConnected read-only property of the web.Node
interface
a boolean indicating whether the node is connected (directly
indirectly) to the context object, for example the web.Document
in the case of the normal DOM, or the web.ShadowRoot
in the
of a shadow DOM.
var isItConnected = nodeObjectInstance.isConnected
See also: https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected
Property. The isConnected read-only property of the `web.Node` interface a boolean indicating whether the node is connected (directly indirectly) to the context object, for example the `web.Document` in the case of the normal DOM, or the `web.ShadowRoot` in the of a shadow DOM. `var isItConnected = nodeObjectInstance.isConnected` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected`
(set-shadow-root! this val)
Property.
The Element.shadowRoot read-only property represents the shadow hosted by the element.
var shadowroot = element.shadowRoot;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Element/shadowRoot
Property. The Element.shadowRoot read-only property represents the shadow hosted by the element. `var shadowroot = element.shadowRoot;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Element/shadowRoot`
(set-slot! this val)
Property.
The slot property of the web.Element
interface returns the
of the shadow DOM slot the element is inserted in.
var aString = element.slot element.slot = aString
See also: https://developer.mozilla.org/en-US/docs/Web/API/Element/slot
Property. The slot property of the `web.Element` interface returns the of the shadow DOM slot the element is inserted in. `var aString = element.slot element.slot = aString` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Element/slot`
(shadow-root this)
Property.
The Element.shadowRoot read-only property represents the shadow hosted by the element.
var shadowroot = element.shadowRoot;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Element/shadowRoot
Property. The Element.shadowRoot read-only property represents the shadow hosted by the element. `var shadowroot = element.shadowRoot;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Element/shadowRoot`
(slot this)
Property.
The slot property of the web.Element
interface returns the
of the shadow DOM slot the element is inserted in.
var aString = element.slot element.slot = aString
See also: https://developer.mozilla.org/en-US/docs/Web/API/Element/slot
Property. The slot property of the `web.Element` interface returns the of the shadow DOM slot the element is inserted in. `var aString = element.slot element.slot = aString` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Element/slot`
(upgrade this root)
Method.
The upgrade() method of the web.CustomElementRegistry
interface
all shadow-containing custom elements in a web.Node
subtree,
before they are connected to the main document.
customElements.upgrade(root);
See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/upgrade
Method. The upgrade() method of the `web.CustomElementRegistry` interface all shadow-containing custom elements in a `web.Node` subtree, before they are connected to the main document. `customElements.upgrade(root);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/upgrade`
(when-defined this name)
Method.
The whenDefined() method of the web.CustomElementRegistry
interface
a web.Promise
that resolves when the named element is defined.
Promise<> customElements.whenDefined(name);
See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/whenDefined
Method. The whenDefined() method of the `web.CustomElementRegistry` interface a `web.Promise` that resolves when the named element is defined. `Promise<> customElements.whenDefined(name);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/whenDefined`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close