TransactionSpec
data class TransactionSpec(val changes: ChangeSpec? = null, val selection: SelectionSpec? = null, val effects: List<StateEffect<*>>? = null, val annotations: List<Annotation<*>>? = null, val userEvent: String? = null, val scrollIntoView: Boolean = false, val filter: Boolean? = null, val sequential: Boolean = false)
Describes a Transaction when calling EditorState.update.
Constructors
Link copied to clipboard
constructor(changes: ChangeSpec? = null, selection: SelectionSpec? = null, effects: List<StateEffect<*>>? = null, annotations: List<Annotation<*>>? = null, userEvent: String? = null, scrollIntoView: Boolean = false, filter: Boolean? = null, sequential: Boolean = false)
Properties
Link copied to clipboard
Set annotations for this transaction.
Link copied to clipboard
The changes to the document made by this transaction.
Link copied to clipboard
Attach state effects to this transaction.
Link copied to clipboard
When set to true, the transaction is marked as needing to scroll the current selection into view.
Link copied to clipboard
When set, this transaction explicitly updates the selection.
Link copied to clipboard
Normally, positions in changes refer to the initial document. When sequential is true, positions refer to the document created by the specs before it instead.