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

# data.Manager

Extends [IDataManager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IDataManager.md), [IFreezable](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md).

Custom data manager.

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

## Constructor {#constructor-summary}

```javascript
data.Manager(data)
```

**Parameters:**

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

Data. ||
|#

\* Mandatory parameter/option.

## Fields {#properties-summary}

#|
|| **Name** | **Type** | **Description** ||
|| [events](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md#events) | [IEventManager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventManager.md)| Event manager for the object.

Inherited from [IFreezable](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md#events). ||
|#

## Events {#events-summary}

#|
|| **Name** | **Description** ||
|| [change](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md#event-change)| Change to the internal state of the object.

Inherited from [IFreezable](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md#event-change). ||
|#

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [freeze](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md#freeze)() | [IFreezable](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md)
| Switches the object to "frozen" mode.

Inherited from [IFreezable](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md#freeze). ||
|| [get](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#get)([path](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#get-param-path)[, [defaultValue](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#get-param-defaultValue)]) | Object
| Returns the value of the data field with the specified name. ||
|| [getAll](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#getAll)() | Object
| Returns an object containing all the data fields. ||
|| [isFrozen](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md#isFrozen)() | Boolean
| Returns true if the object is in "frozen" mode, otherwise false.

Inherited from [IFreezable](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md#isFrozen). ||
|| [set](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#set)([path](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#set-param-path)[, [value](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#set-param-value)]) | [data.Manager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md)
| Sets values for the specified fields. Two signatures are supported: 
- A single argument consisting of a {"name": "value"} object.
- Two arguments; the first is the field name, and the second is the value.
 The name can reference nested fields, i.e. it can contain '.'. ||
|| [setAll](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#setAll)() | [data.Manager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md)
| Completely overwrites all data fields. Equal to consecutive calls of the "unsetAll" and "set" methods, but with better performance. ||
|| [unfreeze](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md#unfreeze)() | [IFreezable](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md)
| Switches the object to active mode.

Inherited from [IFreezable](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IFreezable.md#unfreeze). ||
|| [unset](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#unset)([path](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#unset-param-path)) | [data.Manager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md)
| Clears the specified data fields. ||
|| [unsetAll](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md#unsetAll)() | [data.Manager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/data.Manager.md)
| Clears all data fields. ||
|#

## Methods details {#method_detail}

### get {#get}

```javascript
{Object} get(path[, defaultValue])
```

**Returns** the value of the data field with the specified name.

**Parameters:**

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

String with the name of a data field. The name can reference nested fields, i.e. it can contain '.'. ||
|| [`defaultValue`](#get-param-defaultValue) | — | Type: Object

Default value. ||
|#

\* Mandatory parameter/option.

### getAll {#getAll}

```javascript
{Object} getAll()
```

**Returns** an object containing all the data fields.

### set {#set}

```javascript
{data.Manager} set(path[, value])
```

Sets values for the specified fields. Two signatures are supported: 
- A single argument consisting of a {"name": "value"} object.
- Two arguments; the first is the field name, and the second is the value.
The name can reference nested fields, i.e. it can contain '.'.

**Returns** self-reference.

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`path`](#set-param-path)[*](*star) | — | Type: Object\|String

A string containing the name of a data field, or an object of the type {"field name": "value"}. ||
|| [`value`](#set-param-value) | — | Type: Object

The value, if the string containing the field name is passed as the first argument. ||
|#

\* Mandatory parameter/option.

**Example:**

```javascript
var balloonData = new ymaps.data.Manager({
     balloonContentHeader: 'Balloon title'
});
balloonData.set({
    balloonContentBody: 'Balloon content',
    balloonContentFooter: '<a href="//ya.ru">test</a>'
});
```

### setAll {#setAll}

```javascript
{data.Manager} setAll()
```

Completely overwrites all data fields. Equal to consecutive calls of the "unsetAll" and "set" methods, but with better performance.

**Returns** self-reference.

**Parameters:**

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

\* Mandatory parameter/option.

### unset {#unset}

```javascript
{data.Manager} unset(path)
```

Clears the specified data fields.

**Returns** self-reference.

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`path`](#unset-param-path)[*](*star) | — | Type: String\|String[]

Field name, or an array of names. ||
|#

\* Mandatory parameter/option.

### unsetAll {#unsetAll}

```javascript
{data.Manager} unsetAll()
```

Clears all data fields.

**Returns** self-reference.

[*star]: Mandatory parameter/option.