---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/property_variable.md
  - https://divkit.tech/docs/ru/concepts/divs/2/property_variable.md
  - href: en/concepts/divs/2/property_variable.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# property_variable
A property that is handeled with `get` and `set` methods.

## Parameters
| Parameters | Description |
| --- | --- |
| `get` | <p>**string**</p><p>Required parameter.</p><p>Value. Supports expressions for property initialization.</p><p>Available platforms: Android, iOS, web.</p> |
| `name` | <p>**string**</p><p>Required parameter.</p><p>Property name.</p><p>Available platforms: Android, iOS, web.</p> |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `property`.</p><p>Available platforms: Android, iOS, web.</p> |
| `value_type` | <p>**string**</p><p>Required parameter.</p><p>Return property value type.</p><p>Possible values: `string`, `integer`, `number`, `boolean`, `datetime`, `color`, `url`, `dict`, `array`.</p><p>Available platforms: Android, iOS, web.</p> |
| `new_value_variable_name` | <p>**string**</p><p>Name for accessing the data passed to the setter.</p><p>Default value: `new_value`.</p><p>Available platforms: Android, iOS, web.</p> |
| `set` | <p>**array**</p><p>Action when setting a property.</p><p>Available platforms: Android, iOS, web.</p> |

<details>
<summary>JSON</summary>

```json
{
  type*: "property",
  get*: "string",
  name*: "string",
  new_value_variable_name: "string",
  set: [
    {
      download_callbacks: {
        on_fail_actions: [ div-action, ... ],
        on_success_actions: [ div-action, ... ]
      },
      is_enabled: "bool_int",
      log_id: "string",
      log_url: "string",
      menu_items: [
        {
          action: div-action,
          actions: [ div-action, ... ],
          text*: "string"
        },
        ...
      ],
      payload: "object",
      referer: "string",
      scope_id: "string",
      target: "string",
      typed: div-action-typed,
      url: "string"
    },
    ...
  ],
  value_type*: "string"
}
```
</details>
