Liking cljdoc? Tell your friends :D

web.StaticRange

The StaticRange interface provides attributes that track the and end position of a range, and a boolean attribute indicating the current range is collapsed into a single position.

The StaticRange interface provides attributes that track the
and end position of a range, and a boolean attribute indicating
the current range is collapsed into a single position.
raw docstring

collapsedcljs

(collapsed this)

Property.

The collapsed read-only property of the web.StaticRange interface true if the range's start position and end position are the same.

var boolean = staticRange.collapsed

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/collapsed

Property.

The collapsed read-only property of the `web.StaticRange` interface
true if the range's start position and end position are the same.

`var boolean = staticRange.collapsed`

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

constructorcljs

Constructor.

The StaticRange() constructor creates a new web.StaticRange object which provides attributes that track the start and end position of a range, and a boolean attribute indicating whether the current range is collapsed into a single position.

options Options are as follows:

startContainer: The start web.Node for the range. startOffset: The offset into the start node of the range's start position. endContainer: The end web.Node for the range. endOffset: The offset into the start node of the range's start position.

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

Constructor.

The StaticRange() constructor creates a new `web.StaticRange` object which provides attributes that track the start and end position of a range, and a boolean attribute indicating whether the current range is collapsed into a single position.

options
Options are as follows:

startContainer:  The start `web.Node` for the range.
startOffset: The offset into the start node of the range's start position.
endContainer: The end `web.Node` for the range.
endOffset: The offset into the start node of the range's start position.

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

end-containercljs

(end-container this)

Property.

The endContainer property of the web.StaticRange interface the end web.Node for the range.

var node = staticNode.endContainer staticNode.endContainer = endContainer

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/endContainer

Property.

The endContainer property of the `web.StaticRange` interface
the end `web.Node` for the range.

`var node = staticNode.endContainer
staticNode.endContainer = endContainer`

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

end-offsetcljs

(end-offset this)

Property.

The endOffset property of the web.StaticRange interface returns offset into the end node of the range's end position.

var endOffset = staticRange.endOffset staticRange.endOffset = endOffset

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/endOffset

Property.

The endOffset property of the `web.StaticRange` interface returns
offset into the end node of the range's end position.

`var endOffset = staticRange.endOffset
staticRange.endOffset = endOffset`

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

set-collapsed!cljs

(set-collapsed! this val)

Property.

The collapsed read-only property of the web.StaticRange interface true if the range's start position and end position are the same.

var boolean = staticRange.collapsed

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/collapsed

Property.

The collapsed read-only property of the `web.StaticRange` interface
true if the range's start position and end position are the same.

`var boolean = staticRange.collapsed`

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

set-end-container!cljs

(set-end-container! this val)

Property.

The endContainer property of the web.StaticRange interface the end web.Node for the range.

var node = staticNode.endContainer staticNode.endContainer = endContainer

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/endContainer

Property.

The endContainer property of the `web.StaticRange` interface
the end `web.Node` for the range.

`var node = staticNode.endContainer
staticNode.endContainer = endContainer`

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

set-end-offset!cljs

(set-end-offset! this val)

Property.

The endOffset property of the web.StaticRange interface returns offset into the end node of the range's end position.

var endOffset = staticRange.endOffset staticRange.endOffset = endOffset

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/endOffset

Property.

The endOffset property of the `web.StaticRange` interface returns
offset into the end node of the range's end position.

`var endOffset = staticRange.endOffset
staticRange.endOffset = endOffset`

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

set-start-container!cljs

(set-start-container! this val)

Property.

The startContainer property of the web.StaticRange interface the start web.Node for the range.

var node = staticNode.startContainer staticNode.startContainer = startContainer

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/startContainer

Property.

The startContainer property of the `web.StaticRange` interface
the start `web.Node` for the range.

`var node = staticNode.startContainer
staticNode.startContainer = startContainer`

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

set-start-offset!cljs

(set-start-offset! this val)

Property.

The startOffset property of the web.StaticRange interface returns offset into the start node of the range's start position.

var startOffset = staticRange.startOffset staticRange.startOffset = startOffset

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/startOffset

Property.

The startOffset property of the `web.StaticRange` interface returns
offset into the start node of the range's start position.

`var startOffset = staticRange.startOffset
staticRange.startOffset = startOffset`

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

start-containercljs

(start-container this)

Property.

The startContainer property of the web.StaticRange interface the start web.Node for the range.

var node = staticNode.startContainer staticNode.startContainer = startContainer

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/startContainer

Property.

The startContainer property of the `web.StaticRange` interface
the start `web.Node` for the range.

`var node = staticNode.startContainer
staticNode.startContainer = startContainer`

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

start-offsetcljs

(start-offset this)

Property.

The startOffset property of the web.StaticRange interface returns offset into the start node of the range's start position.

var startOffset = staticRange.startOffset staticRange.startOffset = startOffset

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/startOffset

Property.

The startOffset property of the `web.StaticRange` interface returns
offset into the start node of the range's start position.

`var startOffset = staticRange.startOffset
staticRange.startOffset = startOffset`

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

to-rangecljs

(to-range this)

Method.

The toRange() property of the web.StaticRange interface converts StaticRange object to a web.Range object.

var range = staticRange.toRange()

See also: https://developer.mozilla.org/en-US/docs/Web/API/StaticRange/toRange

Method.

The toRange() property of the `web.StaticRange` interface converts
StaticRange object to a `web.Range` object.

`var range = staticRange.toRange()`

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

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

× close