TK.GlobalCursor

GlobalCursor adds global cursor classes to ensure one of the standard cursors is shown in the overall application.

Source:

Methods

global_cursor(cursor)

Adds a class "toolkit-cursor-" + cursor to the document.body to show a specific cursor.

Parameters:
Name Type Description
cursor string

The name of the cursor to show.

Source:
Fires:

remove_cursor(cursor)

Removes the class from document.body node.

Parameters:
Name Type Description
cursor string

The name of the cursor to remome.

Source:
Fires:

Events

cursorremoved

Is fired when a cursor is removed.

Parameters:
Name Type Description
cursor string

The name of the cursor to remove.

Source:

globalcursor

Is fired when a cursor gets set.

Parameters:
Name Type Description
cursor string

The name of the cursor to show.

Source: