> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mastermindcms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# msm:select

> Сборка select из items

`<msm:select>` собирает нативный HTML-`<select>`, рендеря `<option>` из items.

## Каркас

```html theme={null}
<msm:select id="country" mode="DIRECT" items='[{"value":"DE","label":"Germany"},{"value":"US","label":"USA"}]'>
  <msm:template>
    <option value="${value}">${label}</option>
  </msm:template>
</msm:select>
```

## Частые атрибуты

| Атрибут                      | Значение                                                               |
| ---------------------------- | ---------------------------------------------------------------------- |
| `mode`                       | Режим источника (например `DATABASE`, `BEAN`, `REPOSITORY`, `DIRECT`). |
| `selected` / `selectedValue` | Как определяется выбранная опция.                                      |
| `item-name`                  | Префикс переменных для каждого option item.                            |
