Liking cljdoc? Tell your friends :D

web.CustomElementRegistry

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.
raw docstring

attach-shadowcljs

(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`
sourceraw docstring

composedcljs

(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`
sourceraw docstring

composed-pathcljs

(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`
sourceraw docstring

create-elementcljs

(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`
sourceraw docstring

custom-elementscljs

(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`
sourceraw docstring

definecljs

(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`
sourceraw docstring

getcljs

(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`
sourceraw docstring

get-root-nodecljs

(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`
sourceraw docstring

is-connectedcljs

(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`
sourceraw docstring

set-composed-path!cljs

(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`
sourceraw docstring

set-custom-elements!cljs

(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`
sourceraw docstring

set-is-connected!cljs

(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`
sourceraw docstring

set-shadow-root!cljs

(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`
sourceraw docstring

set-slot!cljs

(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`
sourceraw docstring

shadow-rootcljs

(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`
sourceraw docstring

slotcljs

(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`
sourceraw docstring

upgradecljs

(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`
sourceraw docstring

when-definedcljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close