Interface: UseCursorsResult\<TCursor\>
@roomful/solid / UseCursorsResult
Interface: UseCursorsResult<TCursor>
Section titled “Interface: UseCursorsResult<TCursor>”Defined in: solid/src/index.ts:157
Describes the return value of useCursors.
Type Parameters
Section titled “Type Parameters”TCursor
Section titled “TCursor”TCursor extends CursorData = CursorData
The custom cursor payload shape.
Properties
Section titled “Properties”cursors
Section titled “cursors”cursors:
Accessor<CursorPosition<TCursor>[]>
Defined in: solid/src/index.ts:169
Exposes the latest cursor positions.
Methods
Section titled “Methods”mount()
Section titled “mount()”mount(
element):void
Defined in: solid/src/index.ts:177
Mounts cursor tracking on an element.
Parameters
Section titled “Parameters”element
Section titled “element”HTMLElement
The element to observe.
Returns
Section titled “Returns”void
Nothing.
ref(
element):void
Defined in: solid/src/index.ts:164
Callback ref that mounts the cursor engine on an element.
Parameters
Section titled “Parameters”element
Section titled “element”The element to observe, or null to unmount.
HTMLElement | null
Returns
Section titled “Returns”void
Nothing.
unmount()
Section titled “unmount()”unmount():
void
Defined in: solid/src/index.ts:184
Unmounts cursor tracking.
Returns
Section titled “Returns”void
Nothing.