> ## 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 aus Items erstellen

`<msm:select>` baut ein natives HTML-`<select>`, indem es Optionen aus Items rendert.

## Grundstruktur

```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>
```

## Häufige Attribute

| Attribut                     | Bedeutung                                                             |
| ---------------------------- | --------------------------------------------------------------------- |
| `mode`                       | Datenquellenmodus (z. B. `DATABASE`, `BEAN`, `REPOSITORY`, `DIRECT`). |
| `selected` / `selectedValue` | Wie die selektierte Option bestimmt wird.                             |
| `item-name`                  | Variablen-Prefix pro Option-Item.                                     |
