| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,22 @@ |
| 1 |
+<div class="component component-select"> |
|
| 2 |
+ <label class="tap-highlight"> |
|
| 3 |
+ <span class="label">{{{label}}}</span>
|
|
| 4 |
+ <span class="value"></span> |
|
| 5 |
+ <select data-manipulator-target {{each key: attributes}}{{key}}="{{this}}"{{/each}}>
|
|
| 6 |
+ {{each options}}
|
|
| 7 |
+ {{if Array.isArray(this.value)}}
|
|
| 8 |
+ <optgroup label="{{this.label}}">
|
|
| 9 |
+ {{each this.value}}
|
|
| 10 |
+ <option value="{{this.value}}" class="item-select-option">{{this.label}}</option>
|
|
| 11 |
+ {{/each}}
|
|
| 12 |
+ </optgroup> |
|
| 13 |
+ {{else}}
|
|
| 14 |
+ <option value="{{this.value}}" class="item-select-option">{{this.label}}</option>
|
|
| 15 |
+ {{/if}}
|
|
| 16 |
+ {{/each}}
|
|
| 17 |
+ </select> |
|
| 18 |
+ </label> |
|
| 19 |
+ {{if description}}
|
|
| 20 |
+ <div class="description">{{{description}}}</div>
|
|
| 21 |
+ {{/if}}
|
|
| 22 |
+</div> |