Liking cljdoc? Tell your friends :D

web.shadow-dom.ShadowRoot

The ShadowRoot interface of the Shadow DOM API is the root node a DOM subtree that is rendered separately from a document's main tree.

The ShadowRoot interface of the Shadow DOM API is the root node
a DOM subtree that is rendered separately from a document's main
tree.
raw docstring

active-elementcljs

(active-element this)

Property.

The activeElement read-only property of the web.Document and interfaces returns the web.Element within the DOM or shadow tree that currently has focus.

var element = DocumentOrShadowRoot.activeElement

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement

Property.

The activeElement read-only property of the `web.Document` and
interfaces returns the `web.Element` within the DOM or shadow
tree that currently has focus.

`var element = DocumentOrShadowRoot.activeElement`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement`
sourceraw docstring

delegates-focuscljs

(delegates-focus this)

Property.

The delegatesFocus read-only property of the web.shadow-dom.ShadowRoot returns a boolean that indicates whether delegatesFocus was set the shadow was attached (see Element.attachShadow()).

var df = shadowRoot.delegatesFocus

See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus

Property.

The delegatesFocus read-only property of the `web.shadow-dom.ShadowRoot`
returns a boolean that indicates whether delegatesFocus was set
the shadow was attached (see `Element.attachShadow()`).

`var df = shadowRoot.delegatesFocus`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus`
sourceraw docstring

get-selectioncljs

(get-selection this)

Method.

The getSelection() property of the web.shadow-dom.DocumentOrShadowRoot returns a web.other.Selection object representing the range text selected by the user, or the current position of the caret.

var selection = documentOrShadowRootInstance.getSelection()

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/getSelection

Method.

The getSelection() property of the `web.shadow-dom.DocumentOrShadowRoot`
returns a `web.other.Selection` object representing the range
text selected by the user, or the current position of the caret.

`var selection = documentOrShadowRootInstance.getSelection()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/getSelection`
sourceraw docstring

hostcljs

(host this)

Property.

The host read-only property of the web.shadow-dom.ShadowRoot a reference to the DOM element the ShadowRoot is attached to.

var element = shadowRoot.host

See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host

Property.

The host read-only property of the `web.shadow-dom.ShadowRoot`
a reference to the DOM element the ShadowRoot is attached to.

`var element = shadowRoot.host`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host`
sourceraw docstring

inner-htmlcljs

(inner-html this)

Property.

The innerHTML property of the web.shadow-dom.ShadowRoot interface or returns a reference to the DOM tree inside the ShadowRoot.

var domString = shadowRoot.innerHTML shadowRoot.innerHTML = domString

See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML

Property.

The innerHTML property of the `web.shadow-dom.ShadowRoot` interface
or returns a reference to the DOM tree inside the ShadowRoot.

`var domString = shadowRoot.innerHTML
shadowRoot.innerHTML = domString`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML`
sourceraw docstring

modecljs

(mode this)

Property.

The mode property of the web.shadow-dom.ShadowRoot specifies mode — either open or closed. This defines whether or not the root's internal features are accessible from JavaScript.

var mode = shadowRoot.mode

See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode

Property.

The mode property of the `web.shadow-dom.ShadowRoot` specifies
mode — either open or closed. This defines whether or not the
root's internal features are accessible from JavaScript.

`var mode = shadowRoot.mode`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode`
sourceraw docstring

set-active-element!cljs

(set-active-element! this val)

Property.

The activeElement read-only property of the web.Document and interfaces returns the web.Element within the DOM or shadow tree that currently has focus.

var element = DocumentOrShadowRoot.activeElement

See also: https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement

Property.

The activeElement read-only property of the `web.Document` and
interfaces returns the `web.Element` within the DOM or shadow
tree that currently has focus.

`var element = DocumentOrShadowRoot.activeElement`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement`
sourceraw docstring

set-delegates-focus!cljs

(set-delegates-focus! this val)

Property.

The delegatesFocus read-only property of the web.shadow-dom.ShadowRoot returns a boolean that indicates whether delegatesFocus was set the shadow was attached (see Element.attachShadow()).

var df = shadowRoot.delegatesFocus

See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus

Property.

The delegatesFocus read-only property of the `web.shadow-dom.ShadowRoot`
returns a boolean that indicates whether delegatesFocus was set
the shadow was attached (see `Element.attachShadow()`).

`var df = shadowRoot.delegatesFocus`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus`
sourceraw docstring

set-host!cljs

(set-host! this val)

Property.

The host read-only property of the web.shadow-dom.ShadowRoot a reference to the DOM element the ShadowRoot is attached to.

var element = shadowRoot.host

See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host

Property.

The host read-only property of the `web.shadow-dom.ShadowRoot`
a reference to the DOM element the ShadowRoot is attached to.

`var element = shadowRoot.host`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host`
sourceraw docstring

set-inner-html!cljs

(set-inner-html! this val)

Property.

The innerHTML property of the web.shadow-dom.ShadowRoot interface or returns a reference to the DOM tree inside the ShadowRoot.

var domString = shadowRoot.innerHTML shadowRoot.innerHTML = domString

See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML

Property.

The innerHTML property of the `web.shadow-dom.ShadowRoot` interface
or returns a reference to the DOM tree inside the ShadowRoot.

`var domString = shadowRoot.innerHTML
shadowRoot.innerHTML = domString`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML`
sourceraw docstring

set-mode!cljs

(set-mode! this val)

Property.

The mode property of the web.shadow-dom.ShadowRoot specifies mode — either open or closed. This defines whether or not the root's internal features are accessible from JavaScript.

var mode = shadowRoot.mode

See also: https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode

Property.

The mode property of the `web.shadow-dom.ShadowRoot` specifies
mode — either open or closed. This defines whether or not the
root's internal features are accessible from JavaScript.

`var mode = shadowRoot.mode`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode`
sourceraw docstring

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

× close