Skip to main content

Function: setCursorForElement()

setCursorForElement(element, cursorName): void

Set the cursor for an HTML element. cursorNames can be either cornerstone3DTools cursors or standard cursors.

Parameters​

• element: HTMLDivElement

The element to set the cursor on.

• cursorName: string

The name of the cursor to set. This can be any cursor name either Cornerstone-specific cursor names or the standard CSS cursor names.

Returns​

void

Defined in​

tools/src/cursors/setCursorForElement.ts:19