TypewriterCursorConfig<T>
TYPE DEFINITION
Configures the initial state of the TypewriterCursor.
Since 1.2.0
Properties
-
data Optional
T
The data for the cursor, "data" can be be anything from an object, string, array etc etc. The idea is that you can store any information here you need to render the cursor. For example you could set the data to an object, containing the "name" and "color" for that cursor.
By default the value is undefined.
Since 1.2.0
-
position
number
The position of the cursor within the Typewriter text.
Since 1.2.0
-
selection Optional
The range of positions which this cursor has selected.
Defaults to undefined, meaning no selection has been made.
Since 1.2.0