9ea8653ef7
Had to make various other changes due to incompatibilities. - Use the new `lit` package instead of `lit-html` or `lit-element` - Drop `haunted` since it breaks the rules by specifying `type: module` but then doesn't import with file extensions - Use Sass Dart instead of node-sass (fixes #2445) - Upgrade Karma
12 lines
417 B
JavaScript
12 lines
417 B
JavaScript
import { html } from "lit";
|
|
|
|
const tpl_option = (o) => html`<option value="${o.value}" ?selected="${o.selected}">${o.label}</option>`;
|
|
|
|
export default (o) => html`
|
|
<div class="form-group">
|
|
<label for="${o.id}">${o.label}</label>
|
|
<select class="form-control" id="${o.id}" name="${o.name}" ?multiple="${o.multiple}">
|
|
${o.options?.map(o => tpl_option(o))}
|
|
</select>
|
|
</div>`;
|