# thumb

Элемент может вмещать в себя практически все остальные элементы, прикрытые "заглушкой", превью. Данные дочерних элементов показываются в сплывающем окне.

![](https://4102381-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIQ8jDGDz9O3lPI_vht%2F-MITRnsGuczRCW2KZLPs%2F-MITUl2sOhgJ7tN_JyYm%2FMy%20Evolution%20Site-%20\(EVO%20CMS%20Manager\)%20-%20Google%20Chro%20\(89\).png?alt=media\&token=226a69d5-f410-44a2-ac2b-11fa729d4e28)

Группа при наведении подсвечивается зелёным.

#### Параметры (дополнение к [общим](https://64j.gitbook.io/multifields-2/elementy#nizhe-privedeny-obshie-parametry-dlya-bolshinstva-elementov))

## multi

Строка. Ключ по которому будет происходить поиск элементов и при выборе нескольких файлов, указанные элементы будут клонироваться с заполнением выбранного значения.

## image

Строка. Ключ элемента конфигурации в котором хранится значение для установки картинки для данного элемента.

## [actions](https://64j.gitbook.io/multifields-2/elementy#actions)

Массив или Булево. По умолчанию `['add', 'move', 'del', 'edit', 'hide']`.

**edit**- Разрешает редактирование.

**hide** - Переключает видимость элемента и добавляет в конечный массив ключ "mf.hide" со значением 1

## [items](https://64j.gitbook.io/multifields-2/elementy#items)

Массив с дочерними элементами.

Пример

```php
<?php

return [
    'settings' => [],
    'templates' => [
        'thumb' => [
            'type' => 'thumb',
            'title' => 'Thumb',
            'label' => 'Thumb'
        ],

        'thumbGroup' => [
            'type' => 'thumb',
            'title' => 'Thumb Group',
            'label' => 'Thumb Group',
            'items.class' => 'd-block',
            'items' => [
                'thumbGroup_thumb' => [
                    'type' => 'thumb',
                    'image' => 'thumbGroup_image',
                    'actions' => ['edit'],
                    'class' => 'col-2 float-left'
                ],
                'thumbGroup_image' => [
                    'type' => 'image',
                    'thumb' => ['thumbGroup', 'thumbGroup_thumb'],
                    'placeholder' => 'Image',
                    'class' => 'col-10 float-right'
                ],
                'thumbGroup_text' => [
                    'type' => 'richtext',
                    'placeholder' => 'Text',
                    'class' => 'col-10 float-right'
                ],
                'thumbGroup_link' => [
                    'type' => 'text',
                    'placeholder' => 'Link',
                    'class' => 'col-8 float-right'
                ],
                'thumbGroup_link_text' => [
                    'type' => 'text',
                    'placeholder' => 'Link text',
                    'class' => 'col-2 float-right'
                ]
            ]
        ],

        'thumbImage' => [
            'type' => 'thumb:image',
            'title' => 'Thumb Image',
            'label' => 'Thumb Image',
            'multi' => 'thumbImage'
        ],

        'thumbFile' => [
            'type' => 'thumb:file',
            'title' => 'Thumb File',
            'label' => 'Thumb File'
        ]
    ]
];
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://64j.gitbook.io/multifields-2/tipy-i-parametry/thumb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
