Represents a cursor object.
Inheritance Hierarchy

Members

No filters for this type

Constructors

Initializes a new Cursor instance using the provided url and an alternative.

Parameters

url: string
The url pointing to the cursor's image.
alternative: Cursor
Cursors can be chained but the last alternative needs to be one of the predefined cursors.
Initializes a new Cursor instance using the provided url, hot-spot coordinates, and an alternative.

Parameters

url: string
The url pointing to the cursor's image.
x: number
The x-coordinate of the cursor's hot-spot
y: number
The y-coordinate of the cursor's hot-spot
alternative: Cursor
Cursors can be chained but the last alternative needs to be one of the predefined cursors.

Methods

Returns the CSS text representation for the cursor and its alternatives.
final

Return Value

string
The CSS text representation for the cursor.

Constants

Gets the cursor to be shown when an alias or shortcut can be created.
This corresponds to the alias CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor indicating that something can be scrolled or panned.
This corresponds to the all-scroll CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor where the browser determines the actual cursor to be displayed.
This corresponds to the auto CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor to indicate selection of a table cell..
This corresponds to the cell CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor for resizing columns.
This corresponds to the col-resize CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor to indicate that there is a context menu available.
This corresponds to the context-menu CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor to be shown when something can be copied (often used for drag & drop).
This corresponds to the copy CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the crosshair cursor.
This corresponds to the crosshair CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the default cursor.
This corresponds to the default CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets a cursor that indicates that an edge at the east will be moved.

Depending on the browser this might just be a horizontal resize cursor.

This corresponds to the e-resize CSS cursor. This is how it appears in your browser (hover to see):

staticreadonly
Gets the horizontal resize cursor.
This corresponds to the ew-resize CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor indicating that something can be grabbed (usually in conjunction with GRABBING).
This corresponds to the grab CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor indicating that something is currently being grabbed (usually in conjunction with GRAB ).
This corresponds to the grabbing CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor that indicates that help is available for the object under the cursor.
This corresponds to the help CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the move cursor.
This corresponds to the move CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly

See Also

Developer's Guide
Gets a cursor that indicates that an edge at the north will be moved.

Depending on the browser this might just be a vertical resize cursor.

This corresponds to the n-resize CSS cursor. This is how it appears in your browser (hover to see):

staticreadonly
Gets a cursor that indicates that edges at the north and east will be moved.

Depending on the browser this might just be the diagonal resize cursor for NE to SW resizes.

This corresponds to the ne-resize CSS cursor. This is how it appears in your browser (hover to see):

staticreadonly
Gets the diagonal resize cursor for NE to SW resizes.
This corresponds to the nesw-resize CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor to be shown where nothing can be dropped in a drag & drop operation.
This corresponds to the no-drop CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the invisible cursor.
This corresponds to the none CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly

Property Value

The invisible cursor.
Gets the cursor to be shown when an action cannot be done.
This corresponds to the not-allowed CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the vertical resize cursor.
This corresponds to the ns-resize CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets a cursor that indicates that edges at the north and west will be moved.

Depending on the browser this might just be the diagonal resize cursor for NW to SE resizes.

This corresponds to the nw-resize CSS cursor. This is how it appears in your browser (hover to see):

staticreadonly
Gets the diagonal resize cursor for NW to SE resizes.
This corresponds to the nwse-resize CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor with a pointing hand, as used for example on a hyperlink.
This corresponds to the pointer CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor that indicates progress.
This corresponds to the progress CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor for resizing rows.
This corresponds to the row-resize CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets a cursor that indicates that the edge at the south will be moved.

Depending on the browser this might just be a vertical resize cursor.

This corresponds to the s-resize CSS cursor. This is how it appears in your browser (hover to see):

staticreadonly
Gets a cursor that indicates that edges at the south and east will be moved.

Depending on the browser this might just be the diagonal resize cursor for NW to SE resizes.

This corresponds to the se-resize CSS cursor. This is how it appears in your browser (hover to see):

staticreadonly
Gets a cursor that indicates that edges at the south and west will be moved.

Depending on the browser this might just be the diagonal resize cursor for NE to SW resizes.

This corresponds to the sw-resize CSS cursor. This is how it appears in your browser (hover to see):

staticreadonly
Gets the text selection cursor.
This corresponds to the text CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the vertical text selection cursor.
This corresponds to the vertical-text CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets a cursor that indicates that the edge at the west will be moved.

Depending on the browser this might just be a horizontal resize cursor.

This corresponds to the w-resize CSS cursor. This is how it appears in your browser (hover to see):

staticreadonly
Gets the wait cursor.
This corresponds to the wait CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor for zooming in.
This corresponds to the zoom-in CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly
Gets the cursor for zooming out.
This corresponds to the zoom-out CSS cursor. This is how it appears in your browser (hover to see):
staticreadonly