This commit is contained in:
parent
579e42b339
commit
9a31b1a8db
2 changed files with 6 additions and 6 deletions
|
|
@ -26,7 +26,7 @@ import '@lion/ui/define/lion-select.js';
|
||||||
export const main = () => html`
|
export const main = () => html`
|
||||||
<lion-select name="favoriteColor" label="Favorite color">
|
<lion-select name="favoriteColor" label="Favorite color">
|
||||||
<select slot="input">
|
<select slot="input">
|
||||||
<option selected hidden value>Please select</option>
|
<option selected value>Please select</option>
|
||||||
<option value="red">Red</option>
|
<option value="red">Red</option>
|
||||||
<option value="hotpink">Hotpink</option>
|
<option value="hotpink">Hotpink</option>
|
||||||
<option value="teal">Teal</option>
|
<option value="teal">Teal</option>
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ You can preselect an option by setting the property modelValue.
|
||||||
```html preview-story
|
```html preview-story
|
||||||
<lion-select name="favoriteColor" label="Favorite color" .modelValue="${'hotpink'}">
|
<lion-select name="favoriteColor" label="Favorite color" .modelValue="${'hotpink'}">
|
||||||
<select slot="input">
|
<select slot="input">
|
||||||
<option selected hidden value>Please select</option>
|
<option selected value>Please select</option>
|
||||||
<option value="red">Red</option>
|
<option value="red">Red</option>
|
||||||
<option value="hotpink">Hotpink</option>
|
<option value="hotpink">Hotpink</option>
|
||||||
<option value="teal">Teal</option>
|
<option value="teal">Teal</option>
|
||||||
|
|
@ -42,7 +42,7 @@ You can disable an option by adding the `disabled` attribute to an option.
|
||||||
```html preview-story
|
```html preview-story
|
||||||
<lion-select name="favoriteColor" label="Favorite color">
|
<lion-select name="favoriteColor" label="Favorite color">
|
||||||
<select slot="input">
|
<select slot="input">
|
||||||
<option selected hidden value>Please select</option>
|
<option selected value>Please select</option>
|
||||||
<option value="red">Red</option>
|
<option value="red">Red</option>
|
||||||
<option value="hotpink" disabled>Hotpink</option>
|
<option value="hotpink" disabled>Hotpink</option>
|
||||||
<option value="teal">Teal</option>
|
<option value="teal">Teal</option>
|
||||||
|
|
@ -55,7 +55,7 @@ Or by setting the `disabled` attribute on the entire `lion-select` field.
|
||||||
```html preview-story
|
```html preview-story
|
||||||
<lion-select name="favoriteColor" label="Favorite color" disabled>
|
<lion-select name="favoriteColor" label="Favorite color" disabled>
|
||||||
<select slot="input">
|
<select slot="input">
|
||||||
<option selected hidden value>Please select</option>
|
<option selected value>Please select</option>
|
||||||
<option value="red">Red</option>
|
<option value="red">Red</option>
|
||||||
<option value="hotpink">Hotpink</option>
|
<option value="hotpink">Hotpink</option>
|
||||||
<option value="teal">Teal</option>
|
<option value="teal">Teal</option>
|
||||||
|
|
@ -89,7 +89,7 @@ class MyOptions extends LitElement {
|
||||||
return html`
|
return html`
|
||||||
<lion-select name="favoriteColor" label="Favorite color" disabled>
|
<lion-select name="favoriteColor" label="Favorite color" disabled>
|
||||||
<select slot="input">
|
<select slot="input">
|
||||||
<option selected hidden value>Please select</option>
|
<option selected value>Please select</option>
|
||||||
${this.colours.map(colour => html`<option value="${colour}">${colour}</option>`)}
|
${this.colours.map(colour => html`<option value="${colour}">${colour}</option>`)}
|
||||||
</select>
|
</select>
|
||||||
</lion-select>
|
</lion-select>
|
||||||
|
|
@ -115,7 +115,7 @@ render() {
|
||||||
return html`
|
return html`
|
||||||
<lion-select name="favoriteColor" label="Favorite color" disabled>
|
<lion-select name="favoriteColor" label="Favorite color" disabled>
|
||||||
<select slot="input">
|
<select slot="input">
|
||||||
<option selected hidden value>Please select</option>
|
<option selected value>Please select</option>
|
||||||
${repeat(
|
${repeat(
|
||||||
this.colours,
|
this.colours,
|
||||||
(colour) => colour,
|
(colour) => colour,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue