---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.cursor.Manager.md
  - https://yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/util.cursor.Manager.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/jsapi-v2-1/doc/en/llms.txt

# util.cursor.Manager

Cursor manager.

[Constructor](#constructor-summary) | [Fields](#properties-summary) | [Events](#events-summary) | [Methods](#methods-summary)

## Constructor {#constructor-summary}

```javascript
util.cursor.Manager(element)
```

Manager for cursors over a DOM element. Uses direct assignment via style.cursor.

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`element`](#param-element)[*](*star) | — | Type: HTMLElement

The DOM element that cursors are being set for. ||
|#

\* Mandatory parameter/option.

**Example:**

```javascript
// putting the "arrow" cursor over the map
var cursor = map.cursors.push('arrow');
setTimeout(function () {
    // setting a different key for the cursor after 5 seconds
    cursor.setKey('grabbing');
    setTimeout(function () {
        // removing this cursor from the map after 5 more seconds
        cursor.remove();
    }, 5000);
}, 5000);
```

## Fields {#properties-summary}

#|
|| **Name** | **Type** | **Description** ||
|| [events](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.cursor.Manager.md#events) | [event.Manager](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/event.Manager.md) | Event manager for the cursor manager. ||
|#

## Events {#events-summary}

#|
|| **Name** | **Description** ||
|| [change](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.cursor.Manager.md#event-change) | Change to the cursor. ||
|#

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [push](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.cursor.Manager.md#push)([key](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.cursor.Manager.md#push-param-key)) | [util.cursor.Accessor](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/util.cursor.Accessor.md) | Sets a new cursor and writes it to the stack of cursors for the object. ||
|#

## Fields details {#field_detail}

### events {#events}

```javascript
{event.Manager} events
```

Event manager for the cursor manager.

## Events details {#event_detail}

### change {#change}

Change to the cursor.

## Methods details {#method_detail}

### push {#push}

```javascript
{util.cursor.Accessor} push(key)
```

Sets a new cursor and writes it to the stack of cursors for the object.

**Returns** object providing access to the cursor added to the map.

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`key`](#push-param-key)[*](*star) | — | Type: String

Cursor. Acceptable values: 
- "arrow" - Arrow cursor.
- "crosshair" - Crosshair cursor.
- "grab" - Hand cursor.
- "grabbing" - Closed hand.
- "help" - Arrow cursor with a question mark.
- "zoom" - Magnifying glass.
- "move" - Cursor consisting of four directional arrows.
- "pointer" - Pointing finger.
- "inherit" - Inherit the cursor from the parent. ||
|#

\* Mandatory parameter/option.

[*star]: Mandatory parameter/option.