Liking cljdoc? Tell your friends :D

web.web-components.CustomElementRegistry

The CustomElementRegistry interface provides methods for registering elements and querying registered elements. To get an instance it, use the window.customElements property.

The CustomElementRegistry interface provides methods for registering
elements and querying registered elements. To get an instance
it, use the `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.shadow-dom.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.shadow-dom.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.Event interface a js.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.Event` interface
a `js.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.Event interface the 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 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.Event` interface
the 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 `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 web.dom.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 `web.dom.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.web-components.CustomElementRegistry which can be used to register new custom elements and get information previously 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.web-components.CustomElementRegistry`
which can be used to register new custom elements and get information
previously 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.web-components.CustomElementRegistry defines 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.web-components.CustomElementRegistry`
defines a new custom element.

`customElements.define(name, constructor, options);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define`
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.shadow-dom.ShadowRoot the case 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.shadow-dom.ShadowRoot`
the case 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.Event interface the 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 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.Event` interface
the 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 `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.web-components.CustomElementRegistry which can be used to register new custom elements and get information previously 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.web-components.CustomElementRegistry`
which can be used to register new custom elements and get information
previously 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.shadow-dom.ShadowRoot the case 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.shadow-dom.ShadowRoot`
the case 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

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

× close