---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.3
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-collection-item-builder.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-collection-item-builder.md
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-collection-item-builder
No description yet.

## Parameters
| Parameters | Description |
| --- | --- |
| `data` | <p>**raw_array**</p><p>Required parameter.</p><p>Data that will be used to create collection elements.</p><p>Available platforms: Android, iOS, web.</p> |
| `prototypes` | <p>**array**</p><p>Required parameter.</p><p>Array of `div` elements from which the collection elements will be created.</p><p>An array must not be empty.</p><p>Available platforms: Android, iOS, web.</p> |
| `data_element_name` | <p>**string**</p><p>Name for accessing the next `data` element in the prototype. Working with this element is the same as with dictionaries.</p><p>Default value: `it`.</p><p>Available platforms: Android, iOS, web.</p> |

### prototype
| Parameters | Description |
| --- | --- |
| `div` | <p>**object**</p><p>Required parameter.</p><p>`Div` from which the collection elements will be created. In `Div`, you can use expressions using data from `data`. To access the next `data` element, you need to use the same prefix as in `data_element_prefix`.</p><p>The value has the type `div`.</p><p>List of possible values:<li>[div-image](div-image.md#div-image)</li><li>[div-gif-image](div-gif-image.md#div-gif-image)</li><li>[div-text](div-text.md#div-text)</li><li>[div-separator](div-separator.md#div-separator)</li><li>[div-container](div-container.md#div-container)</li><li>[div-grid](div-grid.md#div-grid)</li><li>[div-gallery](div-gallery.md#div-gallery)</li><li>[div-pager](div-pager.md#div-pager)</li><li>[div-tabs](div-tabs.md#div-tabs)</li><li>[div-state](div-state.md#div-state)</li><li>[div-custom](div-custom.md#div-custom)</li><li>[div-indicator](div-indicator.md#div-indicator)</li><li>[div-slider](div-slider.md#div-slider)</li><li>[div-switch](div-switch.md#div-switch)</li><li>[div-input](div-input.md#div-input)</li><li>[div-select](div-select.md#div-select)</li><li>[div-video](div-video.md#div-video)</li></p> |
| `id` | <p>**string**</p><p>`id` of the element to be created from the prototype. Unlike the `div-base.id` field, may contain expressions. Has a higher priority than `div-base.id`.</p> |
| `selector` | <p>**bool_int**</p><p>A condition that is used to select the prototype for the next element in the collection. If there is more than 1 true condition, the earlier prototype is selected. If none of the conditions are met, the element from `data` is skipped.</p><p>Default value: `true`.</p> |

<details>
<summary>JSON</summary>

```json
{
  data*: "raw_array",
  data_element_name: "string",
  prototypes*: [
    {
      div*: div,
      id: "string",
      selector: "bool_int"
    },
    ...
  ]
}
```
</details>
