Skip to content

Commit 1a28317

Browse files
committed
add some fancy form-field features to select demo
1 parent 9763241 commit 1a28317

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/demo-app/select/select-demo.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
{{ drink.viewValue }}
1515
</md-option>
1616
</md-select>
17+
<md-icon mdPrefix class="demo-drink-icon">local_drink</md-icon>
18+
<md-hint>Pick a drink!</md-hint>
19+
<md-error>You must make a selection</md-error>
1720
</md-form-field>
1821
<p> Value: {{ currentDrink }} </p>
1922
<p> Touched: {{ drinkControl.touched }} </p>

src/demo-app/select/select-demo.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@
77
margin: 24px;
88
}
99

10+
.demo-drink-icon {
11+
vertical-align: bottom;
12+
padding-right: 0.25em;
13+
}
1014
}

0 commit comments

Comments
 (0)