Range

open external class Range(source)

Exposes the JavaScript Range to Kotlin

Since Kotlin

1.1
open external class Range : JsAny(source)

Exposes the JavaScript Range to Kotlin

Since Kotlin

1.8

Constructors

Link copied to clipboard
constructor()
constructor()

Types

Link copied to clipboard
object Companion
Since Kotlin 1.1
object Companion
Since Kotlin 1.8

Properties

Link copied to clipboard
open val collapsed: Boolean
Since Kotlin 1.1
open val collapsed: Boolean
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open val endContainer: Node
Since Kotlin 1.1
open val endContainer: Node
Since Kotlin 1.8
Link copied to clipboard
open val endOffset: Int
Since Kotlin 1.1
open val endOffset: Int
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open val startOffset: Int
Since Kotlin 1.1
open val startOffset: Int
Since Kotlin 1.8

Functions

Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
fun collapse(toStart: Boolean = definedExternally)
Since Kotlin 1.1
fun collapse(toStart: Boolean = definedExternally)
Since Kotlin 1.8
Link copied to clipboard
fun compareBoundaryPoints(how: Short, sourceRange: Range): Short
Since Kotlin 1.1
fun compareBoundaryPoints(how: Short, sourceRange: Range): Short
Since Kotlin 1.8
Link copied to clipboard
fun comparePoint(node: Node, offset: Int): Short
Since Kotlin 1.1
fun comparePoint(node: Node, offset: Int): Short
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
fun detach()
Since Kotlin 1.1
fun detach()
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
fun insertNode(node: Node)
Since Kotlin 1.1
fun insertNode(node: Node)
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
fun isPointInRange(node: Node, offset: Int): Boolean
Since Kotlin 1.1
fun isPointInRange(node: Node, offset: Int): Boolean
Since Kotlin 1.8
Link copied to clipboard
fun selectNode(node: Node)
Since Kotlin 1.1
fun selectNode(node: Node)
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
fun setEnd(node: Node, offset: Int)
Since Kotlin 1.1
fun setEnd(node: Node, offset: Int)
Since Kotlin 1.8
Link copied to clipboard
fun setEndAfter(node: Node)
Since Kotlin 1.1
fun setEndAfter(node: Node)
Since Kotlin 1.8
Link copied to clipboard
fun setEndBefore(node: Node)
Since Kotlin 1.1
fun setEndBefore(node: Node)
Since Kotlin 1.8
Link copied to clipboard
fun setStart(node: Node, offset: Int)
Since Kotlin 1.1
fun setStart(node: Node, offset: Int)
Since Kotlin 1.8
Link copied to clipboard
fun setStartAfter(node: Node)
Since Kotlin 1.1
fun setStartAfter(node: Node)
Since Kotlin 1.8
Link copied to clipboard
fun setStartBefore(node: Node)
Since Kotlin 1.1
fun setStartBefore(node: Node)
Since Kotlin 1.8
Link copied to clipboard
fun surroundContents(newParent: Node)
Since Kotlin 1.1
fun surroundContents(newParent: Node)
Since Kotlin 1.8
Link copied to clipboard

For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny> JsAny.unsafeCast(): T

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8