@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.2 → 0.0.0-pr1451.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/README.md +11 -27
- package/components/checkbox/demo/accessibility.html +49 -0
- package/components/checkbox/demo/accessibility.md +44 -0
- package/components/checkbox/demo/api.html +17 -25
- package/components/checkbox/demo/api.md +40 -416
- package/components/checkbox/demo/api.min.js +5 -4
- package/components/checkbox/demo/customize.html +52 -0
- package/components/checkbox/demo/customize.md +361 -0
- package/components/checkbox/demo/demo-support.js +60 -0
- package/components/checkbox/demo/design.html +52 -0
- package/components/checkbox/demo/design.md +149 -0
- package/components/checkbox/demo/getting-started.html +52 -0
- package/components/checkbox/demo/getting-started.md +261 -0
- package/components/checkbox/demo/index.html +17 -20
- package/components/checkbox/demo/index.md +144 -29
- package/components/checkbox/demo/index.min.js +5 -4
- package/components/checkbox/demo/keyboard-behavior.html +49 -0
- package/components/checkbox/demo/keyboard-behavior.md +0 -3
- package/components/checkbox/demo/layout.md +30 -0
- package/components/checkbox/demo/readme.html +10 -17
- package/components/checkbox/demo/readme.md +11 -27
- package/components/checkbox/demo/styles.css +974 -0
- package/components/checkbox/demo/voiceover.html +49 -0
- package/components/checkbox/demo/voiceover.md +37 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +1 -0
- package/components/checkbox/dist/index.js +5 -4
- package/components/checkbox/dist/registered.js +5 -4
- package/components/combobox/README.md +8 -29
- package/components/combobox/demo/accessibility.html +2 -20
- package/components/combobox/demo/accessibility.md +1 -1
- package/components/combobox/demo/api.html +5 -52
- package/components/combobox/demo/api.md +53 -2261
- package/components/combobox/demo/api.min.js +15 -12
- package/components/combobox/demo/customize.html +53 -0
- package/components/combobox/demo/customize.js +24 -0
- package/components/combobox/demo/customize.md +1249 -0
- package/components/combobox/demo/customize.min.js +18132 -0
- package/components/combobox/demo/demo-support.js +60 -0
- package/components/combobox/demo/design.html +2 -43
- package/components/combobox/demo/design.md +4 -4
- package/components/combobox/demo/getting-started.html +53 -0
- package/components/combobox/demo/{install.js → getting-started.js} +2 -5
- package/components/combobox/demo/getting-started.md +397 -0
- package/components/combobox/demo/{install.min.js → getting-started.min.js} +14 -38
- package/components/combobox/demo/index.html +4 -47
- package/components/combobox/demo/index.md +3 -569
- package/components/combobox/demo/index.min.js +15 -12
- package/components/combobox/demo/keyboard-behavior.html +2 -20
- package/components/combobox/demo/keyboard-behavior.md +2 -2
- package/components/combobox/demo/layout.md +2 -2
- package/components/combobox/demo/readme.html +2 -43
- package/components/combobox/demo/readme.md +8 -29
- package/components/combobox/demo/styles.css +98 -105
- package/components/combobox/demo/voiceover.html +2 -20
- package/components/combobox/demo/voiceover.md +1 -1
- package/components/combobox/dist/index.js +12 -10
- package/components/combobox/dist/registered.js +12 -10
- package/components/counter/README.md +21 -51
- package/components/counter/demo/accessibility.html +49 -0
- package/components/counter/demo/accessibility.md +34 -0
- package/components/counter/demo/api.html +12 -20
- package/components/counter/demo/api.md +49 -1299
- package/components/counter/demo/api.min.js +6 -6
- package/components/counter/demo/customize.html +53 -0
- package/components/counter/demo/customize.md +650 -0
- package/components/counter/demo/demo-support.js +60 -0
- package/components/counter/demo/design.html +52 -0
- package/components/counter/demo/design.md +192 -0
- package/components/counter/demo/getting-started.html +54 -0
- package/components/counter/demo/getting-started.md +332 -0
- package/components/counter/demo/index.html +14 -19
- package/components/counter/demo/index.md +113 -47
- package/components/counter/demo/index.min.js +6 -6
- package/components/counter/demo/keyboard-behavior.html +49 -0
- package/components/counter/demo/keyboard-behavior.md +1 -1
- package/components/counter/demo/keyboardBehavior.html +7 -39
- package/components/counter/demo/layout.md +10 -0
- package/components/counter/demo/readme.html +11 -15
- package/components/counter/demo/readme.md +21 -51
- package/components/counter/demo/styles.css +974 -0
- package/components/counter/demo/voiceover.html +51 -0
- package/components/counter/demo/voiceover.md +80 -0
- package/components/counter/dist/index.js +6 -6
- package/components/counter/dist/registered.js +6 -6
- package/components/datepicker/README.md +10 -24
- package/components/datepicker/demo/accessibility.html +50 -0
- package/components/datepicker/demo/accessibility.md +64 -0
- package/components/datepicker/demo/api.md +69 -1739
- package/components/datepicker/demo/api.min.js +14 -14
- package/components/datepicker/demo/customize.html +53 -0
- package/components/datepicker/demo/customize.md +723 -0
- package/components/datepicker/demo/demo-support.js +60 -0
- package/components/{select/demo/layout.html → datepicker/demo/design.html} +7 -47
- package/components/datepicker/demo/design.md +158 -0
- package/components/datepicker/demo/getting-started.html +53 -0
- package/components/datepicker/demo/getting-started.md +237 -0
- package/components/datepicker/demo/index.html +14 -34
- package/components/datepicker/demo/index.md +160 -103
- package/components/datepicker/demo/index.min.js +14 -14
- package/components/datepicker/demo/keyboard-behavior.html +12 -33
- package/components/datepicker/demo/layout.md +92 -0
- package/components/datepicker/demo/readme.md +10 -24
- package/components/datepicker/demo/styles.css +974 -0
- package/components/{dropdown/demo/keyboardBehavior.html → datepicker/demo/voiceover.html} +14 -36
- package/components/datepicker/demo/voiceover.md +98 -0
- package/components/datepicker/dist/index.js +14 -14
- package/components/datepicker/dist/registered.js +14 -14
- package/components/dropdown/README.md +0 -25
- package/components/dropdown/demo/accessibility.html +49 -0
- package/components/dropdown/demo/accessibility.md +45 -0
- package/components/dropdown/demo/api.html +10 -19
- package/components/dropdown/demo/api.md +40 -1364
- package/components/dropdown/demo/api.min.js +2 -2
- package/components/dropdown/demo/customize.html +54 -0
- package/components/dropdown/demo/customize.md +780 -0
- package/components/dropdown/demo/demo-support.js +60 -0
- package/components/dropdown/demo/design.html +52 -0
- package/components/dropdown/demo/design.md +186 -0
- package/components/dropdown/demo/getting-started.html +54 -0
- package/components/dropdown/demo/getting-started.md +317 -0
- package/components/dropdown/demo/index.html +12 -20
- package/components/dropdown/demo/index.md +70 -225
- package/components/dropdown/demo/index.min.js +2 -2
- package/components/dropdown/demo/keyboard-behavior.html +49 -0
- package/components/dropdown/demo/keyboard-behavior.md +4 -8
- package/components/dropdown/demo/layout.md +21 -0
- package/components/dropdown/demo/readme.html +7 -20
- package/components/dropdown/demo/readme.md +0 -25
- package/components/dropdown/demo/styles.css +974 -0
- package/components/dropdown/demo/voiceover.html +51 -0
- package/components/dropdown/demo/voiceover.md +63 -0
- package/components/dropdown/dist/index.js +2 -2
- package/components/dropdown/dist/registered.js +2 -2
- package/components/form/README.md +9 -13
- package/components/form/demo/accessibility.html +51 -0
- package/components/form/demo/accessibility.md +23 -0
- package/components/form/demo/api.html +11 -14
- package/components/form/demo/api.md +14 -290
- package/components/form/demo/api.min.js +53 -50
- package/components/form/demo/customize.html +54 -0
- package/components/form/demo/customize.md +246 -0
- package/components/form/demo/demo-support.js +60 -0
- package/components/form/demo/getting-started.html +54 -0
- package/components/form/demo/getting-started.md +291 -0
- package/components/form/demo/index.html +12 -14
- package/components/form/demo/index.md +66 -96
- package/components/form/demo/index.min.js +53 -50
- package/components/form/demo/keyboard-behavior.html +51 -0
- package/components/form/demo/readme.html +12 -17
- package/components/form/demo/readme.md +9 -13
- package/components/form/demo/styles.css +974 -0
- package/components/form/demo/voiceover.html +51 -0
- package/components/form/demo/voiceover.md +36 -0
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/README.md +17 -28
- package/components/input/demo/accessibility.html +38 -0
- package/components/input/demo/accessibility.md +69 -0
- package/components/input/demo/api.html +17 -22
- package/components/input/demo/api.js +4 -23
- package/components/input/demo/api.md +67 -1267
- package/components/input/demo/api.min.js +6 -98
- package/components/input/demo/customize.html +54 -0
- package/components/input/demo/customize.js +25 -0
- package/components/input/demo/customize.md +1372 -0
- package/components/input/demo/customize.min.js +7431 -0
- package/components/input/demo/demo-support.js +60 -0
- package/components/input/demo/design.html +39 -0
- package/components/input/demo/design.md +224 -0
- package/components/input/demo/getting-started.html +53 -0
- package/components/input/demo/getting-started.js +8 -0
- package/components/input/demo/getting-started.md +312 -0
- package/components/input/demo/getting-started.min.js +7369 -0
- package/components/input/demo/index.html +16 -22
- package/components/input/demo/index.js +0 -11
- package/components/input/demo/index.md +171 -139
- package/components/input/demo/index.min.js +6 -18
- package/components/input/demo/keyboard-behavior.html +38 -0
- package/components/input/demo/layout.md +77 -0
- package/components/input/demo/readme.md +17 -28
- package/components/input/demo/styles.css +974 -0
- package/components/input/demo/voiceover.html +38 -0
- package/components/input/demo/voiceover.md +70 -0
- package/components/input/dist/base-input.d.ts +1 -0
- package/components/input/dist/index.js +6 -6
- package/components/input/dist/registered.js +6 -6
- package/components/menu/README.md +1 -5
- package/components/menu/demo/api.md +43 -43
- package/components/menu/demo/api.min.js +2 -2
- package/components/menu/demo/index.md +1 -1
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/demo/readme.md +1 -5
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/README.md +9 -22
- package/components/radio/demo/accessibility.html +51 -0
- package/components/radio/demo/accessibility.md +44 -0
- package/components/radio/demo/api.html +13 -20
- package/components/radio/demo/api.md +44 -589
- package/components/radio/demo/api.min.js +3 -3
- package/components/radio/demo/customize.html +53 -0
- package/components/radio/demo/customize.md +368 -0
- package/components/radio/demo/demo-support.js +60 -0
- package/components/radio/demo/design.html +52 -0
- package/components/radio/demo/design.md +143 -0
- package/components/radio/demo/getting-started.html +54 -0
- package/components/radio/demo/getting-started.md +296 -0
- package/components/radio/demo/index.html +16 -19
- package/components/radio/demo/index.md +110 -45
- package/components/radio/demo/index.min.js +3 -3
- package/components/radio/demo/keyboard-behavior.html +51 -0
- package/components/radio/demo/layout.md +30 -0
- package/components/radio/demo/readme.html +11 -17
- package/components/radio/demo/readme.md +9 -22
- package/components/radio/demo/styles.css +974 -0
- package/components/radio/demo/voiceover.html +51 -0
- package/components/radio/demo/voiceover.md +43 -0
- package/components/radio/dist/index.js +3 -3
- package/components/radio/dist/registered.js +3 -3
- package/components/select/README.md +7 -4
- package/components/select/demo/accessibility.html +5 -21
- package/components/select/demo/accessibility.md +1 -1
- package/components/select/demo/api.html +3 -48
- package/components/select/demo/api.md +52 -2342
- package/components/select/demo/customize.html +54 -0
- package/components/select/demo/customize.js +11 -0
- package/components/select/demo/customize.md +1049 -0
- package/components/select/demo/{api.min.js → customize.min.js} +12 -113
- package/components/select/demo/demo-support.js +60 -0
- package/components/select/demo/design.html +3 -44
- package/components/select/demo/design.md +2 -2
- package/components/select/demo/getting-started.html +5 -76
- package/components/select/demo/getting-started.js +20 -3
- package/components/select/demo/getting-started.md +97 -705
- package/components/select/demo/getting-started.min.js +58 -9
- package/components/select/demo/index.html +4 -43
- package/components/select/demo/index.js +5 -3
- package/components/select/demo/index.md +2 -2
- package/components/select/demo/index.min.js +14 -9
- package/components/select/demo/keyboard-behavior.html +6 -47
- package/components/select/demo/keyboard-behavior.md +5 -6
- package/components/select/demo/keyboardBehavior.html +4 -46
- package/components/select/demo/readme.html +3 -44
- package/components/select/demo/readme.md +7 -4
- package/components/select/demo/styles.css +57 -109
- package/components/select/demo/voiceover.html +3 -30
- package/components/select/dist/index.js +5 -5
- package/components/select/dist/registered.js +5 -5
- package/custom-elements.json +249 -246
- package/package.json +3 -3
- package/components/combobox/demo/install.html +0 -94
- package/components/combobox/demo/install.md +0 -98
- package/components/select/demo/api.js +0 -39
- package/components/select/demo/install.md +0 -92
|
@@ -0,0 +1,1049 @@
|
|
|
1
|
+
<auro-header level="1" id="overview">Select - Customize</auro-header>
|
|
2
|
+
<div class="contentWrapper">
|
|
3
|
+
<nav>
|
|
4
|
+
<auro-nav anchorNavContent=".scrollWrapper">
|
|
5
|
+
<span slot="mobileToggleCollapsed">View More</span>
|
|
6
|
+
<span slot="mobileToggleExpanded">View Less</span>
|
|
7
|
+
<auro-anchorlink fluid href="#appearance">Appearance</auro-anchorlink>
|
|
8
|
+
<auro-anchorlink fluid href="#layout" class="level2 body-xs">Shape, Size & Layout</auro-anchorlink>
|
|
9
|
+
<auro-anchorlink fluid href="#background" class="level2 body-xs">Light vs. Dark Background</auro-anchorlink>
|
|
10
|
+
<auro-anchorlink fluid href="#displayValue" class="level2 body-xs">Custom Display Value</auro-anchorlink>
|
|
11
|
+
<auro-anchorlink fluid href="#noCheckmark" class="level2 body-xs">No Checkmark</auro-anchorlink>
|
|
12
|
+
<auro-anchorlink fluid href="#fluid" class="level2 body-xs">Fluid</auro-anchorlink>
|
|
13
|
+
<auro-anchorlink fluid href="#flexMenuWidth" class="level2 body-xs">Flex Menu Width</auro-anchorlink>
|
|
14
|
+
<auro-anchorlink fluid href="#matchWidth" class="level2 body-xs">Match Width</auro-anchorlink>
|
|
15
|
+
<auro-anchorlink fluid href="#placement" class="level2 body-xs">Placement</auro-anchorlink>
|
|
16
|
+
<auro-anchorlink fluid href="#noFlip" class="level2 body-xs">No Flip</auro-anchorlink>
|
|
17
|
+
<auro-anchorlink fluid href="#offset" class="level2 body-xs">Offset</auro-anchorlink>
|
|
18
|
+
<auro-anchorlink fluid href="#shift" class="level2 body-xs">Shift</auro-anchorlink>
|
|
19
|
+
<auro-anchorlink fluid href="#largeHeader" class="level2 body-xs">Large Fullscreen Header</auro-anchorlink>
|
|
20
|
+
<auro-anchorlink fluid href="#breakpoint" class="level2 body-xs">Fullscreen Breakpoint</auro-anchorlink>
|
|
21
|
+
<auro-anchorlink fluid href="#cssTokens" class="level2 body-xs">Tokens</auro-anchorlink>
|
|
22
|
+
<auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
|
|
23
|
+
<auro-anchorlink fluid href="#customBehavior">Behavior</auro-anchorlink>
|
|
24
|
+
<auro-anchorlink fluid href="#autoComplete" class="level2 body-xs">Autocomplete</auro-anchorlink>
|
|
25
|
+
<auro-anchorlink fluid href="#disableComponent" class="level2 body-xs">Disable Component</auro-anchorlink>
|
|
26
|
+
<auro-anchorlink fluid href="#disableOptions" class="level2 body-xs">Disable Option(s)</auro-anchorlink>
|
|
27
|
+
<auro-anchorlink fluid href="#requireSelection" class="level2 body-xs">Require Selection</auro-anchorlink>
|
|
28
|
+
<auro-anchorlink fluid href="#forceError" class="level2 body-xs">Force Error State</auro-anchorlink>
|
|
29
|
+
<auro-anchorlink fluid href="#customValidation" class="level2 body-xs">Custom Validation</auro-anchorlink>
|
|
30
|
+
<auro-anchorlink fluid href="#noValidate" class="level2 body-xs">No Validation</auro-anchorlink>
|
|
31
|
+
<auro-anchorlink fluid href="#placeholder" class="level2 body-xs">Placeholder</auro-anchorlink>
|
|
32
|
+
</auro-nav>
|
|
33
|
+
</nav>
|
|
34
|
+
<div class="mainContent">
|
|
35
|
+
<div class="scrollWrapper">
|
|
36
|
+
<section>
|
|
37
|
+
<auro-header level="2" id="appearance">Appearance</auro-header>
|
|
38
|
+
<auro-header level="3" id="layout">Shape, Size & Layout</auro-header>
|
|
39
|
+
<p>The <code>shape</code>, <code>size</code> and <code>layout</code> attributes work in collaboration to control the overall architecture of the component.</p>
|
|
40
|
+
<p>See the <a href="./design.html">Design page</a> for a detailed breakdown.</p>
|
|
41
|
+
<auro-header level="3" id="background">Light vs. Dark Background</auro-header>
|
|
42
|
+
<p>The <code>appearance</code> attribute defines whether the component renders on lighter or darker backgrounds. Supported values are <code>default</code> and <code>inverse</code>. The default value is <code>default</code>.</p>
|
|
43
|
+
<div class="exampleWrapper">
|
|
44
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
45
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
46
|
+
<auro-select>
|
|
47
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
48
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
49
|
+
<span slot="label">Select Example</span>
|
|
50
|
+
<auro-menu>
|
|
51
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
52
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
53
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
54
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
55
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
56
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
57
|
+
</auro-menu>
|
|
58
|
+
</auro-select>
|
|
59
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
60
|
+
</div>
|
|
61
|
+
<auro-accordion alignRight>
|
|
62
|
+
<span slot="trigger">See code</span>
|
|
63
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
64
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
65
|
+
<pre class="language-html"><code class="language-html"><auro-select>
|
|
66
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
67
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
68
|
+
<span slot="label">Select Example</span>
|
|
69
|
+
<auro-menu>
|
|
70
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
71
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
72
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
73
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
74
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
75
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
76
|
+
</auro-menu>
|
|
77
|
+
</auro-select></code></pre>
|
|
78
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
79
|
+
</auro-accordion>
|
|
80
|
+
<div class="exampleWrapper--ondark">
|
|
81
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance.html) -->
|
|
82
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance.html -->
|
|
83
|
+
<auro-select appearance="inverse" placeholder="Placeholder Text">
|
|
84
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
85
|
+
<span slot="label">Inverse Appearance</span>
|
|
86
|
+
<auro-menu>
|
|
87
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
88
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
89
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
90
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
91
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
92
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
93
|
+
</auro-menu>
|
|
94
|
+
</auro-select>
|
|
95
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
96
|
+
</div>
|
|
97
|
+
<auro-accordion alignRight>
|
|
98
|
+
<span slot="trigger">See code</span>
|
|
99
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance.html) -->
|
|
100
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/appearance.html -->
|
|
101
|
+
<pre class="language-html"><code class="language-html"><auro-select appearance="inverse" placeholder="Placeholder Text">
|
|
102
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
103
|
+
<span slot="label">Inverse Appearance</span>
|
|
104
|
+
<auro-menu>
|
|
105
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
106
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
107
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
108
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
109
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
110
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
111
|
+
</auro-menu>
|
|
112
|
+
</auro-select></code></pre>
|
|
113
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
114
|
+
</auro-accordion>
|
|
115
|
+
<auro-header level="3" id="displayValue">Custom Display Value</auro-header>
|
|
116
|
+
<p>The <code>displayValue</code> slot allows custom HTML content to be shown in place of the selected option's text when the select is not focused. This is useful for displaying icons, formatted text, or other rich content in the trigger.</p>
|
|
117
|
+
<p>To always show the custom display value (even when no selection has been made), set the <code>forceDisplayValue</code> attribute on the component.</p>
|
|
118
|
+
<div class="exampleWrapper">
|
|
119
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/display-value.html) -->
|
|
120
|
+
<!-- The below content is automatically added from ./../apiExamples/display-value.html -->
|
|
121
|
+
<auro-select forceDisplayValue>
|
|
122
|
+
<span slot="label">Travel type</span>
|
|
123
|
+
<auro-menu>
|
|
124
|
+
<auro-menuoption value="flights">
|
|
125
|
+
Flights
|
|
126
|
+
<auro-icon slot="displayValue" category="terminal" name="plane-diag-fill" customcolor></auro-icon>
|
|
127
|
+
</auro-menuoption>
|
|
128
|
+
<auro-menuoption value="cars">
|
|
129
|
+
Cars
|
|
130
|
+
<auro-icon slot="displayValue" category="destination" name="car-rental-stroke" customcolor></auro-icon>
|
|
131
|
+
</auro-menuoption>
|
|
132
|
+
<auro-menuoption value="hotels">
|
|
133
|
+
Hotels
|
|
134
|
+
<auro-icon slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
|
|
135
|
+
</auro-menuoption>
|
|
136
|
+
</auro-menu>
|
|
137
|
+
</auro-select>
|
|
138
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
139
|
+
</div>
|
|
140
|
+
<auro-accordion alignRight>
|
|
141
|
+
<span slot="trigger">See code</span>
|
|
142
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/display-value.html) -->
|
|
143
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/display-value.html -->
|
|
144
|
+
<pre class="language-html"><code class="language-html"><auro-select forceDisplayValue>
|
|
145
|
+
<span slot="label">Travel type</span>
|
|
146
|
+
<auro-menu>
|
|
147
|
+
<auro-menuoption value="flights">
|
|
148
|
+
Flights
|
|
149
|
+
<auro-icon slot="displayValue" category="terminal" name="plane-diag-fill" customcolor></auro-icon>
|
|
150
|
+
</auro-menuoption>
|
|
151
|
+
<auro-menuoption value="cars">
|
|
152
|
+
Cars
|
|
153
|
+
<auro-icon slot="displayValue" category="destination" name="car-rental-stroke" customcolor></auro-icon>
|
|
154
|
+
</auro-menuoption>
|
|
155
|
+
<auro-menuoption value="hotels">
|
|
156
|
+
Hotels
|
|
157
|
+
<auro-icon slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
|
|
158
|
+
</auro-menuoption>
|
|
159
|
+
</auro-menu>
|
|
160
|
+
</auro-select></code></pre>
|
|
161
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
162
|
+
</auro-accordion>
|
|
163
|
+
<auro-header level="3" id="noCheckmark">Hide checkmark indicators</auro-header>
|
|
164
|
+
<p>By default, the select component displays a checkmark next to the currently selected option. To hide the checkmark indicator, set the <code>nocheckmark</code> attribute on the <code>auro-menu</code> element.</p>
|
|
165
|
+
<div class="exampleWrapper">
|
|
166
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-checkmark.html) -->
|
|
167
|
+
<!-- The below content is automatically added from ./../apiExamples/no-checkmark.html -->
|
|
168
|
+
<auro-select nocheckmark placeholder="Placeholder Text">
|
|
169
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
170
|
+
<span slot="label">Label</span>
|
|
171
|
+
<auro-menu>
|
|
172
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
173
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
174
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
175
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
176
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
177
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
178
|
+
</auro-menu>
|
|
179
|
+
</auro-select>
|
|
180
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
181
|
+
</div>
|
|
182
|
+
<auro-accordion alignRight>
|
|
183
|
+
<span slot="trigger">See code</span>
|
|
184
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-checkmark.html) -->
|
|
185
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/no-checkmark.html -->
|
|
186
|
+
<pre class="language-html"><code class="language-html"><auro-select nocheckmark placeholder="Placeholder Text">
|
|
187
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
188
|
+
<span slot="label">Label</span>
|
|
189
|
+
<auro-menu>
|
|
190
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
191
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
192
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
193
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
194
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
195
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
196
|
+
</auro-menu>
|
|
197
|
+
</auro-select></code></pre>
|
|
198
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
199
|
+
</auro-accordion>
|
|
200
|
+
<auro-header level="3" id="fluid">Fluid</auro-header>
|
|
201
|
+
<p>When the <code>fluid</code> attribute is present, the component will expand to 100% width of its container element. This is useful for form layouts where the select should fill the available space.</p>
|
|
202
|
+
<div class="exampleWrapper">
|
|
203
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fluid.html) -->
|
|
204
|
+
<!-- The below content is automatically added from ./../apiExamples/fluid.html -->
|
|
205
|
+
<auro-select fluid placeholder="Placeholder Text">
|
|
206
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
207
|
+
<span slot="label">Label</span>
|
|
208
|
+
<auro-menu>
|
|
209
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
210
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
211
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
212
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
213
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
214
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
215
|
+
</auro-menu>
|
|
216
|
+
</auro-select>
|
|
217
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
218
|
+
</div>
|
|
219
|
+
<auro-accordion alignRight>
|
|
220
|
+
<span slot="trigger">See code</span>
|
|
221
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fluid.html) -->
|
|
222
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/fluid.html -->
|
|
223
|
+
<pre class="language-html"><code class="language-html"><auro-select fluid placeholder="Placeholder Text">
|
|
224
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
225
|
+
<span slot="label">Label</span>
|
|
226
|
+
<auro-menu>
|
|
227
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
228
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
229
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
230
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
231
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
232
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
233
|
+
</auro-menu>
|
|
234
|
+
</auro-select></code></pre>
|
|
235
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
236
|
+
</auro-accordion>
|
|
237
|
+
<auro-header level="3" id="flexMenuWidth">Flex menu width</auro-header>
|
|
238
|
+
<p>By default, the bib width matches the trigger width. Setting the <code>flexMenuWidth</code> attribute allows the bib to size itself based on its content, which is useful when menu option text is wider than the trigger.</p>
|
|
239
|
+
<div class="exampleWrapper">
|
|
240
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/flex-menu-width.html) -->
|
|
241
|
+
<!-- The below content is automatically added from ./../apiExamples/flex-menu-width.html -->
|
|
242
|
+
<auro-select flexMenuWidth id="flexMenuWidthExample" placeholder="Placeholder Text">
|
|
243
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
244
|
+
<span slot="label">Label</span>
|
|
245
|
+
<auro-menu>
|
|
246
|
+
<auro-menuoption value="united states">United States has a country code of (+1)</auro-menuoption>
|
|
247
|
+
<auro-menuoption value="costa rica">Costa Rica has a country code of (+506)</auro-menuoption>
|
|
248
|
+
<auro-menuoption value="mexico">Mexico has a country code of (+52)</auro-menuoption>
|
|
249
|
+
<auro-menuoption value="afghanistan">Afghanistan has a country code of (+93)</auro-menuoption>
|
|
250
|
+
<auro-menuoption value="albania">Albania has a country code of (+355)</auro-menuoption>
|
|
251
|
+
</auro-menu>
|
|
252
|
+
</auro-select>
|
|
253
|
+
<style>
|
|
254
|
+
#flexMenuWidthExample::part(dropdownTrigger) {
|
|
255
|
+
width: 25%;
|
|
256
|
+
}
|
|
257
|
+
</style>
|
|
258
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
259
|
+
</div>
|
|
260
|
+
<auro-accordion alignRight>
|
|
261
|
+
<span slot="trigger">See code</span>
|
|
262
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/flex-menu-width.html) -->
|
|
263
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/flex-menu-width.html -->
|
|
264
|
+
<pre class="language-html"><code class="language-html"><auro-select flexMenuWidth id="flexMenuWidthExample" placeholder="Placeholder Text">
|
|
265
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
266
|
+
<span slot="label">Label</span>
|
|
267
|
+
<auro-menu>
|
|
268
|
+
<auro-menuoption value="united states">United States has a country code of (+1)</auro-menuoption>
|
|
269
|
+
<auro-menuoption value="costa rica">Costa Rica has a country code of (+506)</auro-menuoption>
|
|
270
|
+
<auro-menuoption value="mexico">Mexico has a country code of (+52)</auro-menuoption>
|
|
271
|
+
<auro-menuoption value="afghanistan">Afghanistan has a country code of (+93)</auro-menuoption>
|
|
272
|
+
<auro-menuoption value="albania">Albania has a country code of (+355)</auro-menuoption>
|
|
273
|
+
</auro-menu>
|
|
274
|
+
</auro-select>
|
|
275
|
+
<style>
|
|
276
|
+
#flexMenuWidthExample::part(dropdownTrigger) {
|
|
277
|
+
width: 25%;
|
|
278
|
+
}
|
|
279
|
+
</style></code></pre>
|
|
280
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
281
|
+
</auro-accordion>
|
|
282
|
+
<auro-header level="3" id="matchWidth">Match Width</auro-header>
|
|
283
|
+
<p>When the <code>matchWidth</code> attribute is present, the popover bib and trigger will be set to the same width. This ensures the dropdown menu appears at exactly the same width as the trigger element.</p>
|
|
284
|
+
<div class="exampleWrapper">
|
|
285
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/match-width.html) -->
|
|
286
|
+
<!-- The below content is automatically added from ./../apiExamples/match-width.html -->
|
|
287
|
+
<auro-select matchWidth placeholder="Placeholder Text">
|
|
288
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
289
|
+
<span slot="label">Label</span>
|
|
290
|
+
<auro-menu>
|
|
291
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
292
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
293
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
294
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
295
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
296
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
297
|
+
</auro-menu>
|
|
298
|
+
</auro-select>
|
|
299
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
300
|
+
</div>
|
|
301
|
+
<auro-accordion alignRight>
|
|
302
|
+
<span slot="trigger">See code</span>
|
|
303
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/match-width.html) -->
|
|
304
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/match-width.html -->
|
|
305
|
+
<pre class="language-html"><code class="language-html"><auro-select matchWidth placeholder="Placeholder Text">
|
|
306
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
307
|
+
<span slot="label">Label</span>
|
|
308
|
+
<auro-menu>
|
|
309
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
310
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
311
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
312
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
313
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
314
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
315
|
+
</auro-menu>
|
|
316
|
+
</auro-select></code></pre>
|
|
317
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
318
|
+
</auro-accordion>
|
|
319
|
+
<auro-header level="3" id="placement">Placement</auro-header>
|
|
320
|
+
<p>The <code>placement</code> attribute defines the position where the dropdown bib should appear relative to the trigger. Supported values are <code>top</code>, <code>right</code>, <code>bottom</code>, <code>left</code>, <code>bottom-start</code>, <code>top-start</code>, <code>top-end</code>, <code>right-start</code>, <code>right-end</code>, <code>bottom-end</code>, <code>left-start</code>, and <code>left-end</code>. The default value is <code>bottom-start</code>.</p>
|
|
321
|
+
<div class="exampleWrapper">
|
|
322
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/placement.html) -->
|
|
323
|
+
<!-- The below content is automatically added from ./../apiExamples/placement.html -->
|
|
324
|
+
<auro-select placement="top-start" placeholder="Placeholder Text">
|
|
325
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
326
|
+
<span slot="label">Label</span>
|
|
327
|
+
<auro-menu>
|
|
328
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
329
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
330
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
331
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
332
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
333
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
334
|
+
</auro-menu>
|
|
335
|
+
</auro-select>
|
|
336
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
337
|
+
</div>
|
|
338
|
+
<auro-accordion alignRight>
|
|
339
|
+
<span slot="trigger">See code</span>
|
|
340
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/placement.html) -->
|
|
341
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/placement.html -->
|
|
342
|
+
<pre class="language-html"><code class="language-html"><auro-select placement="top-start" placeholder="Placeholder Text">
|
|
343
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
344
|
+
<span slot="label">Label</span>
|
|
345
|
+
<auro-menu>
|
|
346
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
347
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
348
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
349
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
350
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
351
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
352
|
+
</auro-menu>
|
|
353
|
+
</auro-select></code></pre>
|
|
354
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
355
|
+
</auro-accordion>
|
|
356
|
+
<auro-header level="3" id="noFlip">No Flip</auro-header>
|
|
357
|
+
<p>When the <code>noFlip</code> attribute is present, the dropdown bib will not flip to an alternate position when there isn't enough space in the specified <code>placement</code>. By default, the bib will automatically reposition itself to remain visible within the viewport.</p>
|
|
358
|
+
<div class="exampleWrapper">
|
|
359
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-flip.html) -->
|
|
360
|
+
<!-- The below content is automatically added from ./../apiExamples/no-flip.html -->
|
|
361
|
+
<auro-select noFlip placeholder="Placeholder Text">
|
|
362
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
363
|
+
<span slot="label">Label</span>
|
|
364
|
+
<auro-menu>
|
|
365
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
366
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
367
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
368
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
369
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
370
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
371
|
+
</auro-menu>
|
|
372
|
+
</auro-select>
|
|
373
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
374
|
+
</div>
|
|
375
|
+
<auro-accordion alignRight>
|
|
376
|
+
<span slot="trigger">See code</span>
|
|
377
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-flip.html) -->
|
|
378
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/no-flip.html -->
|
|
379
|
+
<pre class="language-html"><code class="language-html"><auro-select noFlip placeholder="Placeholder Text">
|
|
380
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
381
|
+
<span slot="label">Label</span>
|
|
382
|
+
<auro-menu>
|
|
383
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
384
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
385
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
386
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
387
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
388
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
389
|
+
</auro-menu>
|
|
390
|
+
</auro-select></code></pre>
|
|
391
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
392
|
+
</auro-accordion>
|
|
393
|
+
<auro-header level="3" id="offset">Offset</auro-header>
|
|
394
|
+
<p>The <code>offset</code> attribute defines the gap (in pixels) between the trigger element and the dropdown bib. The default value is <code>0</code>.</p>
|
|
395
|
+
<div class="exampleWrapper">
|
|
396
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/offset.html) -->
|
|
397
|
+
<!-- The below content is automatically added from ./../apiExamples/offset.html -->
|
|
398
|
+
<auro-select offset="16" placeholder="Placeholder Text">
|
|
399
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
400
|
+
<span slot="label">Label</span>
|
|
401
|
+
<auro-menu>
|
|
402
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
403
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
404
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
405
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
406
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
407
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
408
|
+
</auro-menu>
|
|
409
|
+
</auro-select>
|
|
410
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
411
|
+
</div>
|
|
412
|
+
<auro-accordion alignRight>
|
|
413
|
+
<span slot="trigger">See code</span>
|
|
414
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/offset.html) -->
|
|
415
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/offset.html -->
|
|
416
|
+
<pre class="language-html"><code class="language-html"><auro-select offset="16" placeholder="Placeholder Text">
|
|
417
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
418
|
+
<span slot="label">Label</span>
|
|
419
|
+
<auro-menu>
|
|
420
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
421
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
422
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
423
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
424
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
425
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
426
|
+
</auro-menu>
|
|
427
|
+
</auro-select></code></pre>
|
|
428
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
429
|
+
</auro-accordion>
|
|
430
|
+
<auro-header level="3" id="shift">Shift</auro-header>
|
|
431
|
+
<p>When the <code>shift</code> attribute is present, the dropdown bib will shift its position to avoid being cut off by the viewport. This is useful when the bib would otherwise extend beyond the edge of the screen.</p>
|
|
432
|
+
<div class="exampleWrapper">
|
|
433
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/shift.html) -->
|
|
434
|
+
<!-- The below content is automatically added from ./../apiExamples/shift.html -->
|
|
435
|
+
<auro-select shift placeholder="Placeholder Text">
|
|
436
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
437
|
+
<span slot="label">Label</span>
|
|
438
|
+
<auro-menu>
|
|
439
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
440
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
441
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
442
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
443
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
444
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
445
|
+
</auro-menu>
|
|
446
|
+
</auro-select>
|
|
447
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
448
|
+
</div>
|
|
449
|
+
<auro-accordion alignRight>
|
|
450
|
+
<span slot="trigger">See code</span>
|
|
451
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/shift.html) -->
|
|
452
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/shift.html -->
|
|
453
|
+
<pre class="language-html"><code class="language-html"><auro-select shift placeholder="Placeholder Text">
|
|
454
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
455
|
+
<span slot="label">Label</span>
|
|
456
|
+
<auro-menu>
|
|
457
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
458
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
459
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
460
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
461
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
462
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
463
|
+
</auro-menu>
|
|
464
|
+
</auro-select></code></pre>
|
|
465
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
466
|
+
</auro-accordion>
|
|
467
|
+
<auro-header level="3" id="largeHeader">Large Fullscreen Header</auro-header>
|
|
468
|
+
<p>When the <code>largeFullscreenHeadline</code> attribute is present, the headline displayed in the fullscreen bib will render in the larger <code>HeadingDisplay</code> style. By default, the fullscreen headline uses <code>Heading 600</code>.</p>
|
|
469
|
+
<div class="exampleWrapper">
|
|
470
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/large-fullscreen-headline.html) -->
|
|
471
|
+
<!-- The below content is automatically added from ./../apiExamples/large-fullscreen-headline.html -->
|
|
472
|
+
<auro-select largeFullscreenHeadline fullscreenBreakpoint="lg">
|
|
473
|
+
<span slot="label">Select Example</span>
|
|
474
|
+
<span slot="bib.fullscreen.headline">Large Headline</span>
|
|
475
|
+
<auro-menu>
|
|
476
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
477
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
478
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
479
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
480
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
481
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
482
|
+
</auro-menu>
|
|
483
|
+
</auro-select>
|
|
484
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
485
|
+
</div>
|
|
486
|
+
<auro-accordion alignRight>
|
|
487
|
+
<span slot="trigger">See code</span>
|
|
488
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/large-fullscreen-headline.html) -->
|
|
489
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/large-fullscreen-headline.html -->
|
|
490
|
+
<pre class="language-html"><code class="language-html"><auro-select largeFullscreenHeadline fullscreenBreakpoint="lg">
|
|
491
|
+
<span slot="label">Select Example</span>
|
|
492
|
+
<span slot="bib.fullscreen.headline">Large Headline</span>
|
|
493
|
+
<auro-menu>
|
|
494
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
495
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
496
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
497
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
498
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
499
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
500
|
+
</auro-menu>
|
|
501
|
+
</auro-select></code></pre>
|
|
502
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
503
|
+
</auro-accordion>
|
|
504
|
+
<auro-header level="3" id="breakpoint">Fullscreen Breakpoint</auro-header>
|
|
505
|
+
<p>The <code>fullscreenBreakpoint</code> attribute defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. Supported values are <code>xs</code>, <code>sm</code>, <code>md</code>, <code>lg</code>, <code>xl</code>, and <code>disabled</code>. The default value is <code>sm</code>.</p>
|
|
506
|
+
<p>When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint. Setting the value to <code>disabled</code> prevents the dropdown from ever entering fullscreen mode.</p>
|
|
507
|
+
<div class="exampleWrapper">
|
|
508
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen-breakpoint.html) -->
|
|
509
|
+
<!-- The below content is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
|
|
510
|
+
<auro-select fullscreenBreakpoint="lg">
|
|
511
|
+
<span slot="label">Select Example</span>
|
|
512
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
513
|
+
<auro-menu>
|
|
514
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
515
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
516
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
517
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
518
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
519
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
520
|
+
</auro-menu>
|
|
521
|
+
</auro-select>
|
|
522
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
523
|
+
</div>
|
|
524
|
+
<auro-accordion alignRight>
|
|
525
|
+
<span slot="trigger">See code</span>
|
|
526
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fullscreen-breakpoint.html) -->
|
|
527
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
|
|
528
|
+
<pre class="language-html"><code class="language-html"><auro-select fullscreenBreakpoint="lg">
|
|
529
|
+
<span slot="label">Select Example</span>
|
|
530
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
531
|
+
<auro-menu>
|
|
532
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
533
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
534
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
535
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
536
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
537
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
538
|
+
</auro-menu>
|
|
539
|
+
</auro-select></code></pre>
|
|
540
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
541
|
+
</auro-accordion>
|
|
542
|
+
<auro-header level="3" id="cssTokens">Tokens</auro-header>
|
|
543
|
+
<p>The component may be restyled by changing the values of the following token(s) for the dropown, input and menu</p>
|
|
544
|
+
<auro-header level="4" id="cssTokensSelect">Select</auro-header>
|
|
545
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
546
|
+
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
547
|
+
<pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
548
|
+
|
|
549
|
+
:host(:not([ondark])),
|
|
550
|
+
:host(:not([appearance='inverse'])) {
|
|
551
|
+
--ds-auro-select-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
|
|
552
|
+
--ds-auro-select-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
553
|
+
--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|
|
554
|
+
--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
555
|
+
--ds-auro-select-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
556
|
+
--ds-auro-select-error-icon-color: var(--ds-basic-color-status-error, #{v.$ds-basic-color-status-error});
|
|
557
|
+
--ds-auro-select-outline-color: transparent;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
:host([ondark]),
|
|
561
|
+
:host([appearance='inverse']) {
|
|
562
|
+
--ds-auro-select-border-color: var(--ds-basic-color-border-inverse, #{v.$ds-basic-color-border-inverse});
|
|
563
|
+
--ds-auro-select-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
564
|
+
--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #{v.$ds-basic-color-texticon-inverse-muted});
|
|
565
|
+
--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
566
|
+
--ds-auro-select-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
567
|
+
--ds-auro-select-error-icon-color: var(--ds-advanced-color-state-error-inverse, #{v.$ds-advanced-color-state-error-inverse});
|
|
568
|
+
--ds-auro-select-outline-color: transparent;
|
|
569
|
+
}</code></pre>
|
|
570
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
571
|
+
<auro-header level="4" id="cssTokensDropdown">Dropdown</auro-header>
|
|
572
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../dropdown/src/styles/tokens.scss) -->
|
|
573
|
+
<!-- The below code snippet is automatically added from ./../../dropdown/src/styles/tokens.scss -->
|
|
574
|
+
<pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
575
|
+
@use "@aurodesignsystem/design-tokens/dist/legacy/auro-classic/SCSSVariables" as vac;
|
|
576
|
+
|
|
577
|
+
:host(:not([ondark])),
|
|
578
|
+
:host(:not([appearance="inverse"])) {
|
|
579
|
+
--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|
|
580
|
+
--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
581
|
+
--ds-auro-dropdown-trigger-hover-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
582
|
+
--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
583
|
+
--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
|
|
584
|
+
--ds-auro-dropdown-trigger-outline-color: transparent;
|
|
585
|
+
--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
586
|
+
--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, #{vac.$ds-elevation-200});
|
|
587
|
+
--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
588
|
+
--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
589
|
+
--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
:host([ondark]),
|
|
593
|
+
:host([appearance="inverse"]) {
|
|
594
|
+
--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #{v.$ds-basic-color-texticon-inverse-muted});
|
|
595
|
+
--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
596
|
+
--ds-auro-dropdown-trigger-hover-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
597
|
+
--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
598
|
+
--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #{v.$ds-basic-color-border-inverse});
|
|
599
|
+
--ds-auro-dropdown-trigger-outline-color: transparent;
|
|
600
|
+
--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
601
|
+
--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, #{vac.$ds-elevation-200});
|
|
602
|
+
--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
603
|
+
--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
604
|
+
--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
605
|
+
}</code></pre>
|
|
606
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
607
|
+
<auro-header level="4" id="cssTokensMenu">Menu</auro-header>
|
|
608
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../menu/src/styles/default/tokens.scss) -->
|
|
609
|
+
<!-- The below code snippet is automatically added from ./../../menu/src/styles/default/tokens.scss -->
|
|
610
|
+
<pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
611
|
+
|
|
612
|
+
:host {
|
|
613
|
+
--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
|
|
614
|
+
--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #{v.$ds-basic-color-brand-primary});
|
|
615
|
+
--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
616
|
+
--ds-auro-menuoption-container-color: transparent;
|
|
617
|
+
--ds-auro-menuoption-container-border-color: var(--ds-auro-menuoption-container-color);
|
|
618
|
+
--ds-auro-menuoption-icon-color: transparent;
|
|
619
|
+
--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
620
|
+
}</code></pre>
|
|
621
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
622
|
+
</section>
|
|
623
|
+
<section>
|
|
624
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/css-parts.md) -->
|
|
625
|
+
<!-- The below content is automatically added from ./../docs/partials/customize/css-parts.md -->
|
|
626
|
+
<auro-header level="3" id="cssParts">CSS Shadow Parts</auro-header>
|
|
627
|
+
<p>CSS Shadow Parts allow you to style elements inside a web component's shadow DOM using the <code>::part()</code> pseudo-element. The following parts are exposed by <code><auro-select></code>.</p>
|
|
628
|
+
<table class="auro_table">
|
|
629
|
+
<thead>
|
|
630
|
+
<tr>
|
|
631
|
+
<th>Part</th>
|
|
632
|
+
<th>Description</th>
|
|
633
|
+
</tr>
|
|
634
|
+
</thead>
|
|
635
|
+
<tbody>
|
|
636
|
+
<tr><td><code>dropdownTrigger</code></td><td>The trigger content container.</td></tr>
|
|
637
|
+
<tr><td><code>dropdownChevron</code></td><td>The collapsed/expanded state icon container.</td></tr>
|
|
638
|
+
<tr><td><code>dropdownSize</code></td><td>The dropdown bib sizing container (height, width, maxHeight, maxWidth only).</td></tr>
|
|
639
|
+
<tr><td><code>helpText</code></td><td>The help text element.</td></tr>
|
|
640
|
+
</tbody>
|
|
641
|
+
</table>
|
|
642
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
643
|
+
<div class="exampleWrapper">
|
|
644
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/css-parts.html) -->
|
|
645
|
+
<!-- The below content is automatically added from ../apiExamples/css-parts.html -->
|
|
646
|
+
<style>
|
|
647
|
+
auro-select.css-parts-demo::part(dropdownTrigger) {
|
|
648
|
+
border-color: orange;
|
|
649
|
+
}
|
|
650
|
+
auro-select.css-parts-demo::part(dropdownChevron) {
|
|
651
|
+
color: purple;
|
|
652
|
+
}
|
|
653
|
+
auro-select.css-parts-demo::part(helpText) {
|
|
654
|
+
color: green;
|
|
655
|
+
}
|
|
656
|
+
auro-select.css-parts-demo::part(dropdownSize) {
|
|
657
|
+
max-height: 200px;
|
|
658
|
+
}
|
|
659
|
+
</style>
|
|
660
|
+
<auro-select class="css-parts-demo">
|
|
661
|
+
<span slot="label">CSS Parts Example</span>
|
|
662
|
+
<span slot="helpText">This select has custom styles applied via CSS Shadow Parts.</span>
|
|
663
|
+
<auro-menuoption value="one">Option One</auro-menuoption>
|
|
664
|
+
<auro-menuoption value="two">Option Two</auro-menuoption>
|
|
665
|
+
<auro-menuoption value="three">Option Three</auro-menuoption>
|
|
666
|
+
</auro-select>
|
|
667
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
668
|
+
</div>
|
|
669
|
+
<auro-accordion alignRight>
|
|
670
|
+
<span slot="trigger">See code</span>
|
|
671
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/css-parts.html) -->
|
|
672
|
+
<!-- The below code snippet is automatically added from ../apiExamples/css-parts.html -->
|
|
673
|
+
<pre class="language-html"><code class="language-html"><style>
|
|
674
|
+
auro-select.css-parts-demo::part(dropdownTrigger) {
|
|
675
|
+
border-color: orange;
|
|
676
|
+
}
|
|
677
|
+
auro-select.css-parts-demo::part(dropdownChevron) {
|
|
678
|
+
color: purple;
|
|
679
|
+
}
|
|
680
|
+
auro-select.css-parts-demo::part(helpText) {
|
|
681
|
+
color: green;
|
|
682
|
+
}
|
|
683
|
+
auro-select.css-parts-demo::part(dropdownSize) {
|
|
684
|
+
max-height: 200px;
|
|
685
|
+
}
|
|
686
|
+
</style>
|
|
687
|
+
<auro-select class="css-parts-demo">
|
|
688
|
+
<span slot="label">CSS Parts Example</span>
|
|
689
|
+
<span slot="helpText">This select has custom styles applied via CSS Shadow Parts.</span>
|
|
690
|
+
<auro-menuoption value="one">Option One</auro-menuoption>
|
|
691
|
+
<auro-menuoption value="two">Option Two</auro-menuoption>
|
|
692
|
+
<auro-menuoption value="three">Option Three</auro-menuoption>
|
|
693
|
+
</auro-select></code></pre>
|
|
694
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
695
|
+
</auro-accordion>
|
|
696
|
+
</section>
|
|
697
|
+
<auro-header level="2" id="customBehavior">Behavior</auro-header>
|
|
698
|
+
<auro-header level="3" id="autoComplete">Autocomplete</auro-header>
|
|
699
|
+
<p>The <code>autocomplete</code> attribute enables browser autofill support for the select element. When set, the browser may offer saved values for the field based on the specified autocomplete token (e.g. <code>country-name</code> for country selection).</p>
|
|
700
|
+
<p>This is especially useful when the select is used alongside other form fields that support autofill, creating a seamless form-filling experience.</p>
|
|
701
|
+
<div class="exampleWrapper">
|
|
702
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/autocomplete.html) -->
|
|
703
|
+
<!-- The below content is automatically added from ./../apiExamples/autocomplete.html -->
|
|
704
|
+
<form>
|
|
705
|
+
<auro-select autocomplete="country-name">
|
|
706
|
+
<span slot="label">Select Your Country</span>
|
|
707
|
+
<span slot="bib.fullscreen.headline">Select Your Country</span>
|
|
708
|
+
<auro-menu>
|
|
709
|
+
<auro-menuoption value="US">United States</auro-menuoption>
|
|
710
|
+
<auro-menuoption value="CA">Canada</auro-menuoption>
|
|
711
|
+
<auro-menuoption value="MX">Mexico</auro-menuoption>
|
|
712
|
+
<auro-menuoption value="GB">United Kingdom</auro-menuoption>
|
|
713
|
+
<auro-menuoption value="FR">France</auro-menuoption>
|
|
714
|
+
<auro-menuoption value="DE">Germany</auro-menuoption>
|
|
715
|
+
<auro-menuoption value="JP">Japan</auro-menuoption>
|
|
716
|
+
<auro-menuoption value="AU">Australia</auro-menuoption>
|
|
717
|
+
<auro-menuoption value="BR">Brazil</auro-menuoption>
|
|
718
|
+
<auro-menuoption value="IN">India</auro-menuoption>
|
|
719
|
+
</auro-menu>
|
|
720
|
+
</auro-select>
|
|
721
|
+
</form>
|
|
722
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
723
|
+
</div>
|
|
724
|
+
<auro-accordion alignRight>
|
|
725
|
+
<span slot="trigger">See code</span>
|
|
726
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/autocomplete.html) -->
|
|
727
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/autocomplete.html -->
|
|
728
|
+
<pre class="language-html"><code class="language-html"><form>
|
|
729
|
+
<auro-select autocomplete="country-name">
|
|
730
|
+
<span slot="label">Select Your Country</span>
|
|
731
|
+
<span slot="bib.fullscreen.headline">Select Your Country</span>
|
|
732
|
+
<auro-menu>
|
|
733
|
+
<auro-menuoption value="US">United States</auro-menuoption>
|
|
734
|
+
<auro-menuoption value="CA">Canada</auro-menuoption>
|
|
735
|
+
<auro-menuoption value="MX">Mexico</auro-menuoption>
|
|
736
|
+
<auro-menuoption value="GB">United Kingdom</auro-menuoption>
|
|
737
|
+
<auro-menuoption value="FR">France</auro-menuoption>
|
|
738
|
+
<auro-menuoption value="DE">Germany</auro-menuoption>
|
|
739
|
+
<auro-menuoption value="JP">Japan</auro-menuoption>
|
|
740
|
+
<auro-menuoption value="AU">Australia</auro-menuoption>
|
|
741
|
+
<auro-menuoption value="BR">Brazil</auro-menuoption>
|
|
742
|
+
<auro-menuoption value="IN">India</auro-menuoption>
|
|
743
|
+
</auro-menu>
|
|
744
|
+
</auro-select>
|
|
745
|
+
</form></code></pre>
|
|
746
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
747
|
+
</auro-accordion>
|
|
748
|
+
<auro-header level="3" id="disableComponent">Disable Component</auro-header>
|
|
749
|
+
<p>The entire component may be disabled. When disabled, the component will render to reflect the state, may not receive focus nor react to any key or pointer events.</p>
|
|
750
|
+
<p>When the component is disabled and part of a form, the components value is still included in the form submission.</p>
|
|
751
|
+
<p class="note">
|
|
752
|
+
<strong>Note:</strong> If the component is marked as both <strong>invalid</strong> and <code>disabled</code>, the <strong>invalid</strong> state UI/UX and functional behavior are ignored. The <code>disabled</code> UI/UX and functional behavior works normally.
|
|
753
|
+
</p>
|
|
754
|
+
<div class="exampleWrapper">
|
|
755
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
|
|
756
|
+
<!-- The below content is automatically added from ./../apiExamples/disabled.html -->
|
|
757
|
+
<auro-select disabled placeholder="Placeholder Text">
|
|
758
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
759
|
+
<span slot="label">Label</span>
|
|
760
|
+
<auro-menu>
|
|
761
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
762
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
763
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
764
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
765
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
766
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
767
|
+
</auro-menu>
|
|
768
|
+
</auro-select>
|
|
769
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
770
|
+
</div>
|
|
771
|
+
<auro-accordion alignRight>
|
|
772
|
+
<span slot="trigger">See code</span>
|
|
773
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
|
|
774
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
|
|
775
|
+
<pre class="language-html"><code class="language-html"><auro-select disabled placeholder="Placeholder Text">
|
|
776
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
777
|
+
<span slot="label">Label</span>
|
|
778
|
+
<auro-menu>
|
|
779
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
780
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
781
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
782
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
783
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
784
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
785
|
+
</auro-menu>
|
|
786
|
+
</auro-select></code></pre>
|
|
787
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
788
|
+
</auro-accordion>
|
|
789
|
+
<auro-header level="3" id="disableOptions">Disable Option(s)</auro-header>
|
|
790
|
+
<p>The component may be rendered with one or more <code>disabled</code> options. When navigating the list of options with the keyboard or assistive technology to mark the next or previous option as active, disabled options will be skipped, jumping to the next enabled option.</p>
|
|
791
|
+
<p>While using the pointer to mark options as active, hovering over disabled options will be ignored and the previous active option will remain active.</p>
|
|
792
|
+
<p class="note">
|
|
793
|
+
<strong>Note:</strong> If the currently <code>selected</code> option is marked as <code>disabled</code>, the component value is reset to <code>undefined</code> and the component validation workflow is performed (e.g., if the component instance is <code>required</code> it will set <code>validity="valueMissing".</code>).
|
|
794
|
+
</p>
|
|
795
|
+
<p class="note">
|
|
796
|
+
<strong>Note:</strong> marking all options as disabled is not supported. Disable the component instead.
|
|
797
|
+
</p>
|
|
798
|
+
<div class="exampleWrapper">
|
|
799
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled-options.html) -->
|
|
800
|
+
<!-- The below content is automatically added from ./../apiExamples/disabled-options.html -->
|
|
801
|
+
<auro-select placeholder="Placeholder Text">
|
|
802
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
803
|
+
<span slot="label">Label</span>
|
|
804
|
+
<auro-menu>
|
|
805
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
806
|
+
<auro-menuoption value="price" disabled>Price</auro-menuoption>
|
|
807
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
808
|
+
<auro-menuoption value="departure" disabled>Departure</auro-menuoption>
|
|
809
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
810
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
811
|
+
</auro-menu>
|
|
812
|
+
</auro-select>
|
|
813
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
814
|
+
</div>
|
|
815
|
+
<auro-accordion alignRight>
|
|
816
|
+
<span slot="trigger">See code</span>
|
|
817
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled-options.html) -->
|
|
818
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/disabled-options.html -->
|
|
819
|
+
<pre class="language-html"><code class="language-html"><auro-select placeholder="Placeholder Text">
|
|
820
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
821
|
+
<span slot="label">Label</span>
|
|
822
|
+
<auro-menu>
|
|
823
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
824
|
+
<auro-menuoption value="price" disabled>Price</auro-menuoption>
|
|
825
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
826
|
+
<auro-menuoption value="departure" disabled>Departure</auro-menuoption>
|
|
827
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
828
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
829
|
+
</auro-menu>
|
|
830
|
+
</auro-select></code></pre>
|
|
831
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
832
|
+
</auro-accordion>
|
|
833
|
+
<auro-header level="3" id="requireSelection">Require selection of an option</auro-header>
|
|
834
|
+
<p>Certain use cases may require the guest to make a selection from the component in order to continue the intended work flow (e.g. form submission).</p>
|
|
835
|
+
<p>When the component is marked required:</p>
|
|
836
|
+
<ol>
|
|
837
|
+
<li>Move focus to the auro-select element</li>
|
|
838
|
+
<li>Activate the trigger (e.g. mouse click, tap or keyboard event)</li>
|
|
839
|
+
<li>Navigate the list of options</li>
|
|
840
|
+
<li>
|
|
841
|
+
Collapse the bib without making a selection
|
|
842
|
+
<p class="note">
|
|
843
|
+
This will re-render the component in a state reflecting the validation error. To resolve the error, the guest may continue to the following steps.
|
|
844
|
+
</p>
|
|
845
|
+
</li>
|
|
846
|
+
<li>Activate the trigger</li>
|
|
847
|
+
<li>Navigate the list of options marking any option as active</li>
|
|
848
|
+
<li>
|
|
849
|
+
Select the active option
|
|
850
|
+
<p class="note">
|
|
851
|
+
This will re-render the component and the validation error state will be removed.
|
|
852
|
+
</p>
|
|
853
|
+
</li>
|
|
854
|
+
</ol>
|
|
855
|
+
<div class="exampleWrapper">
|
|
856
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
|
|
857
|
+
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
858
|
+
<auro-select required placeholder="Placeholder Text">
|
|
859
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
860
|
+
<span slot="label">Label</span>
|
|
861
|
+
<auro-menu>
|
|
862
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
863
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
864
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
865
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
866
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
867
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
868
|
+
</auro-menu>
|
|
869
|
+
</auro-select>
|
|
870
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
871
|
+
</div>
|
|
872
|
+
<auro-accordion alignRight>
|
|
873
|
+
<span slot="trigger">See code</span>
|
|
874
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
|
|
875
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
|
|
876
|
+
<pre class="language-html"><code class="language-html"><auro-select required placeholder="Placeholder Text">
|
|
877
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
878
|
+
<span slot="label">Label</span>
|
|
879
|
+
<auro-menu>
|
|
880
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
881
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
882
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
883
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
884
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
885
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
886
|
+
</auro-menu>
|
|
887
|
+
</auro-select></code></pre>
|
|
888
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
889
|
+
</auro-accordion>
|
|
890
|
+
<auro-header level="3" id="forceError">Force an error state</auro-header>
|
|
891
|
+
<p>The <code>error</code> attribute can be set on the select to force the component into a <code>customError</code> validity state. When defined, the component will render in its error state regardless of the current selection.</p>
|
|
892
|
+
<p>The value of the <code>error</code> attribute is used as the validation error message displayed below the trigger. If the <code>setCustomValidityCustomError</code> property is also defined, its value will be used as the error message instead.</p>
|
|
893
|
+
<p>Removing the <code>error</code> attribute clears the forced error state and re-evaluates validation normally.</p>
|
|
894
|
+
<div class="exampleWrapper">
|
|
895
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
|
|
896
|
+
<!-- The below content is automatically added from ./../apiExamples/error.html -->
|
|
897
|
+
<auro-select error="Custom error message" placeholder="Placeholder Text">
|
|
898
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
899
|
+
<span slot="label">Label</span>
|
|
900
|
+
<auro-menu>
|
|
901
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
902
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
903
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
904
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
905
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
906
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
907
|
+
</auro-menu>
|
|
908
|
+
</auro-select>
|
|
909
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
910
|
+
</div>
|
|
911
|
+
<auro-accordion alignRight>
|
|
912
|
+
<span slot="trigger">See code</span>
|
|
913
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
|
|
914
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
|
|
915
|
+
<pre class="language-html"><code class="language-html"><auro-select error="Custom error message" placeholder="Placeholder Text">
|
|
916
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
917
|
+
<span slot="label">Label</span>
|
|
918
|
+
<auro-menu>
|
|
919
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
920
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
921
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
922
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
923
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
924
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
925
|
+
</auro-menu>
|
|
926
|
+
</auro-select></code></pre>
|
|
927
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
928
|
+
</auro-accordion>
|
|
929
|
+
<auro-header level="3" id="customValidation">Custom validation messages</auro-header>
|
|
930
|
+
<p>The select provides several properties to customize the error messages displayed for different validation states. When a validation error occurs, the component checks for a state-specific message first, then falls back to the general <code>setCustomValidity</code> message.</p>
|
|
931
|
+
<ul>
|
|
932
|
+
<li><strong><code>setCustomValidity</code></strong> — Sets a fallback error message displayed for any validation error. This message is used when no state-specific message is defined.</li>
|
|
933
|
+
<li><strong><code>setCustomValidityCustomError</code></strong> — Displayed when the <code>error</code> attribute is set on the component, putting it into a <code>customError</code> validity state. If not defined, the value of the <code>error</code> attribute is used as the message.</li>
|
|
934
|
+
<li><strong><code>setCustomValidityValueMissing</code></strong> — Displayed when the component is <code>required</code> and the user leaves it empty (<code>valueMissing</code> validity state).</li>
|
|
935
|
+
</ul>
|
|
936
|
+
<p>The priority order for error messages is: state-specific property > <code>setCustomValidity</code> > default browser message. Default messages are provided by the browser and are pre-localized to the language the browser is running in.</p>
|
|
937
|
+
<div class="exampleWrapper">
|
|
938
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/custom-validity.html) -->
|
|
939
|
+
<!-- The below content is automatically added from ./../apiExamples/custom-validity.html -->
|
|
940
|
+
<auro-select required setCustomValidityValueMissing="Please select a sort preference." placeholder="Sort by...">
|
|
941
|
+
<span slot="label">Sort Preference</span>
|
|
942
|
+
<span slot="bib.fullscreen.headline">Sort Preference</span>
|
|
943
|
+
<auro-menu>
|
|
944
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
945
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
946
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
947
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
948
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
949
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
950
|
+
</auro-menu>
|
|
951
|
+
</auro-select>
|
|
952
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
953
|
+
</div>
|
|
954
|
+
<auro-accordion alignRight>
|
|
955
|
+
<span slot="trigger">See code</span>
|
|
956
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/custom-validity.html) -->
|
|
957
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/custom-validity.html -->
|
|
958
|
+
<pre class="language-html"><code class="language-html"><auro-select required setCustomValidityValueMissing="Please select a sort preference." placeholder="Sort by...">
|
|
959
|
+
<span slot="label">Sort Preference</span>
|
|
960
|
+
<span slot="bib.fullscreen.headline">Sort Preference</span>
|
|
961
|
+
<auro-menu>
|
|
962
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
963
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
964
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
965
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
966
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
967
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
968
|
+
</auro-menu>
|
|
969
|
+
</auro-select></code></pre>
|
|
970
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
971
|
+
</auro-accordion>
|
|
972
|
+
<auro-header level="3" id="noValidate">No Validation</auro-header>
|
|
973
|
+
<p>When the <code>noValidate</code> attribute is present, the component will not perform automatic validation on blur. This is useful when validation is handled externally or should only be triggered on form submission.</p>
|
|
974
|
+
<div class="exampleWrapper">
|
|
975
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-validate.html) -->
|
|
976
|
+
<!-- The below content is automatically added from ./../apiExamples/no-validate.html -->
|
|
977
|
+
<auro-select required noValidate placeholder="Placeholder Text">
|
|
978
|
+
<span slot="label">Label</span>
|
|
979
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
980
|
+
<auro-menu>
|
|
981
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
982
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
983
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
984
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
985
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
986
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
987
|
+
</auro-menu>
|
|
988
|
+
</auro-select>
|
|
989
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
990
|
+
</div>
|
|
991
|
+
<auro-accordion alignRight>
|
|
992
|
+
<span slot="trigger">See code</span>
|
|
993
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-validate.html) -->
|
|
994
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/no-validate.html -->
|
|
995
|
+
<pre class="language-html"><code class="language-html"><auro-select required noValidate placeholder="Placeholder Text">
|
|
996
|
+
<span slot="label">Label</span>
|
|
997
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
998
|
+
<auro-menu>
|
|
999
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1000
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
1001
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
1002
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
1003
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
1004
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
1005
|
+
</auro-menu>
|
|
1006
|
+
</auro-select></code></pre>
|
|
1007
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1008
|
+
</auro-accordion>
|
|
1009
|
+
<auro-header level="3" id="placeholder">Placeholder</auro-header>
|
|
1010
|
+
<p>Use the <code>placeholder</code> attribute to define custom placeholder text that is displayed in the trigger before a value has been selected.</p>
|
|
1011
|
+
<div class="exampleWrapper">
|
|
1012
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/placeholder.html) -->
|
|
1013
|
+
<!-- The below content is automatically added from ./../apiExamples/placeholder.html -->
|
|
1014
|
+
<auro-select placeholder="Please select your preferred option">
|
|
1015
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1016
|
+
<span slot="label">Label</span>
|
|
1017
|
+
<auro-menu>
|
|
1018
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1019
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
1020
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
1021
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
1022
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
1023
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
1024
|
+
</auro-menu>
|
|
1025
|
+
</auro-select>
|
|
1026
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1027
|
+
</div>
|
|
1028
|
+
<auro-accordion alignRight>
|
|
1029
|
+
<span slot="trigger">See code</span>
|
|
1030
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/placeholder.html) -->
|
|
1031
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/placeholder.html -->
|
|
1032
|
+
<pre class="language-html"><code class="language-html"><auro-select placeholder="Please select your preferred option">
|
|
1033
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1034
|
+
<span slot="label">Label</span>
|
|
1035
|
+
<auro-menu>
|
|
1036
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1037
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
1038
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
1039
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
1040
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
1041
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
1042
|
+
</auro-menu>
|
|
1043
|
+
</auro-select></code></pre>
|
|
1044
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1045
|
+
</auro-accordion>
|
|
1046
|
+
</section>
|
|
1047
|
+
</div>
|
|
1048
|
+
</div>
|
|
1049
|
+
</div>
|