File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -637,11 +637,20 @@ <h3><textarea> with bindable autosize </h3>
637
637
< mat-card class ="demo-card demo-basic ">
638
638
< mat-toolbar color ="primary "> Autocomplete</ mat-toolbar >
639
639
< mat-card-content >
640
- < mat-form-field >
640
+ < mat-form-field class ="demo-block ">
641
+ < mat-label > Pick Number</ mat-label >
642
+ < input type ="text " aria-label ="Number " matInput
643
+ [matAutocomplete] ="autoComplete1 ">
644
+ < mat-autocomplete #autoComplete1 ="matAutocomplete ">
645
+ < mat-option *ngFor ="let option of options " [value] ="option "> {{option}}</ mat-option >
646
+ </ mat-autocomplete >
647
+ </ mat-form-field >
648
+
649
+ < mat-form-field appearance ="outline " class ="demo-block ">
641
650
< mat-label > Pick Number</ mat-label >
642
651
< input type ="text " aria-label ="Number " matInput
643
- [matAutocomplete] ="auto ">
644
- < mat-autocomplete #auto ="matAutocomplete ">
652
+ [matAutocomplete] ="autoComplete2 ">
653
+ < mat-autocomplete #autoComplete2 ="matAutocomplete ">
645
654
< mat-option *ngFor ="let option of options " [value] ="option "> {{option}}</ mat-option >
646
655
</ mat-autocomplete >
647
656
</ mat-form-field >
Original file line number Diff line number Diff line change 16
16
width : 100% ;
17
17
}
18
18
19
+ .demo-block {
20
+ display : block ;
21
+ }
22
+
19
23
.demo-card {
20
24
margin : 16px ;
21
25
You can’t perform that action at this time.
0 commit comments