add docs for dropdowns
This commit is contained in:
parent
77b0d6b019
commit
a1b0562d0d
5 changed files with 85 additions and 0 deletions
|
|
@ -371,6 +371,37 @@
|
|||
— Microsoft Windows User Experience p. 175
|
||||
</footer>
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
Dropdowns can be rendered by using the <code>select</code> and <code>option</code>
|
||||
elements.
|
||||
</p>
|
||||
|
||||
<%- example(`
|
||||
<select>
|
||||
<option>5 - Incredible!</option>
|
||||
<option>4 - Great!</option>
|
||||
<option>3 - Pretty good</option>
|
||||
<option>2 - Not so great</option>
|
||||
<option>1 - Unfortunate</option>
|
||||
</select>
|
||||
`) %>
|
||||
|
||||
<p>
|
||||
By default, the first option will be selected. You can change this by
|
||||
giving one of your <code>option</code> elements the <code>selected</code>
|
||||
attribute.
|
||||
</p>
|
||||
|
||||
<%- example(`
|
||||
<select>
|
||||
<option>5 - Incredible!</option>
|
||||
<option>4 - Great!</option>
|
||||
<option selected>3 - Pretty good</option>
|
||||
<option>2 - Not so great</option>
|
||||
<option>1 - Unfortunate</option>
|
||||
</select>
|
||||
`) %>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue