TransactionSpecBuilder
class TransactionSpecBuilder
Builder scope for constructing a TransactionSpec via DSL.
Example:
val spec = transactionSpec {
insert(0, "Hello")
selection(5)
scrollIntoView()
}Content copied to clipboard
Functions
Link copied to clipboard
Add an annotation.
Link copied to clipboard
Add a state effect.
Link copied to clipboard
Mark that the selection should be scrolled into view.
Link copied to clipboard
Link copied to clipboard
Mark positions as relative to the document after preceding specs.