<div class="form-group">
<label for="exampleSelect1">Example select</label>
<select class="form-control" id="testSelect">
<option>Curabitur</option>
<option>Maecenas vel</option>
<option>Suspendisse maximus velit non lacus</option>
<option>Sed maximus gohjyt</option>
<option>Aliquam cupiditate, vel!</option>
<option>Nunc eget neque sit amet ipsum auctor laoreet</option>
</select>
</div>
<div class="form-group">
<label for="exampleSelect1">{{ label }}</label>
<select class="{{ class }}" id="{{ id }}"{% if multiple %} multiple{% endif %}>
{%- for option in options -%}
<option{% if option.value %} value="{{ option.value }}"{% endif %}{% if option.selected %} selected{% endif %}{% if option.disabled %} disabled{% endif %}>{{ option.name }}</option>
{% endfor -%}
</select>
</div>
{
"label": "Example select",
"id": "testSelect",
"name": "testInput",
"class": "form-control",
"options": [
{
"name": "Curabitur"
},
{
"name": "Maecenas vel"
},
{
"name": "Suspendisse maximus velit non lacus"
},
{
"name": "Sed maximus gohjyt"
},
{
"name": "Aliquam cupiditate, vel!"
},
{
"name": "Nunc eget neque sit amet ipsum auctor laoreet"
}
]
}
No notes defined.