There are no notes for this item.
- Handle: @dropdown--standard
- Variants (3): Standard , Option groups , States
- Preview:
- Filesystem Path: src\components\02-blocks\forms\02-controls\dropdown\dropdown.hbs
- References (3): @control-wrapper, @label, @description
- Referenced by (1): @request-info
<div class="form-control Page1">
<label for="field-1">Lorem ipsum dolor sit amet consectetur</label>
<div class="description" id="description-1">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Blanditiis deserunt ullam temporibus sunt! Quo libero aut atque beatae, distinctio quasi.</div>
<select name="Field_lorem_ipsum_dolor" id="field-1" aria-describedby="description-1">
<option value="" selected>--Select an option--</option>
<option value="Option number one">Option number one</option>
<option value="Option number two">Option number two</option>
<option value="Disabled" disabled>Disabled option</option>
</select>
</div>
{{#> @control-wrapper}}
{{#*inline 'container'}}
{{> @label}}
{{> @description}}
<select name="Field_{{name}}" id="field-{{pageId}}" {{#if required}} required aria-required="true"{{/if}}{{#if description}}aria-describedby="description-{{pageId}}"{{/if}}>
{{#> control}}
{{#each group}}
{{#if label}}
<optgroup label="{{label}}">
{{/if}}
{{#each control}}
<option value="{{value}}"{{#if selected}} selected{{/if}}{{#if disabled}} disabled{{/if}}>{{option}}</option>
{{/each}}
{{#if label}}
</optgroup>
{{/if}}
{{/each}}
{{/control}}
</select>
{{/inline}}
{{/@control-wrapper}}
{
"pageId": 1,
"label": "Lorem ipsum dolor sit amet consectetur",
"name": "lorem_ipsum_dolor",
"description": "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Blanditiis deserunt ullam temporibus sunt! Quo libero aut atque beatae, distinctio quasi.",
"group": [
{
"control": [
{
"option": "--Select an option--",
"selected": true,
"value": null
},
{
"option": "Option number one",
"value": "Option number one"
},
{
"option": "Option number two",
"value": "Option number two"
},
{
"option": "Disabled option",
"value": "Disabled",
"disabled": true
}
]
}
]
}