mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-29 13:26:59 -04:00
23 lines
774 B
Smarty
Executable File
23 lines
774 B
Smarty
Executable File
<div class="component component-select">
|
|
<label class="tap-highlight">
|
|
<span class="label">{{{label}}}</span>
|
|
<span class="value"></span>
|
|
<select data-manipulator-target {{each key: attributes}}{{key}}="{{this}}"{{/each}}>
|
|
{{each options}}
|
|
{{if Array.isArray(this.value)}}
|
|
<optgroup label="{{this.label}}">
|
|
{{each this.value}}
|
|
<option value="{{this.value}}" class="item-select-option">{{this.label}}</option>
|
|
{{/each}}
|
|
</optgroup>
|
|
{{else}}
|
|
<option value="{{this.value}}" class="item-select-option">{{this.label}}</option>
|
|
{{/if}}
|
|
{{/each}}
|
|
</select>
|
|
</label>
|
|
{{if description}}
|
|
<div class="description">{{{description}}}</div>
|
|
{{/if}}
|
|
</div>
|