-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-autocomplete: should have a 'display icon' option #6150
Comments
+1 |
+1 |
@troig thanks for the suggestion, it's similar to what I'm doing for now. It's just so standard to see an icon there that it would make sense to be supported out of the box. |
+1 for icons |
1 similar comment
+1 for icons |
+1 for icons |
1 similar comment
+1 for icons |
This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its dupuyyann@gmail.com ------- This is a copy of the message, including all the headers. ------ Content preview: Closed #6150. --- You are receiving this because you are subscribed Content analysis details: (1.5 points, 5.0 required) pts rule name description 1.6 HTML_IMAGE_ONLY_12 BODY: HTML: images with 800-1200 bytes of words ----==_mimepart_57226899ee68a_40733fa637e3f2c03664a0 Closed #6150. You are receiving this because you are subscribed to this thread. Closed #6150. — ----==_mimepart_57226899ee68a_40733fa637e3f2c03664a0-- |
Is this issue going to be resolved or we should use the CSS workaround all the time? |
I guess it has been closed on the spring issue cleaning spree. Would be really nice to have without nasty CSS hacks though. |
+1 |
9 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
👍 |
+1 |
+1 for icons |
Also, when using the md-autocomplete with a floating label, it can be good to have a select icon at the right, as the simple select component |
+1 |
7 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 for icons |
Since this issue is closed, I don't think this is gonna be fixed. CSS workaround works well so... |
This works with As you can see you can have an icon on the left (with <mat-form-field appearance="outline">
<mat-label>Country of residence</mat-label>
<input type="text" placeholder="Pick or type a country" aria-label="Country" matInput [formControl]="countryField"
autocomplete="off"
[matAutocomplete]="auto">
<mat-autocomplete formControlName="country" #auto>
<mat-option>Andorra</mat-option>
<mat-option>Antigua and Barbuda</mat-option>
<mat-option>...</mat-option>
</mat-autocomplete>
<mat-icon matPrefix>flag</mat-icon>
<mat-icon matSuffix>language</mat-icon>
<mat-hint>Location</mat-hint>
</mat-form-field> |
@glowinthedark Please submit Angular Material and CDK questions here and issues here. This repo is for AngularJS Material. |
It's commonplace to display an informative icon next to some controls, especially if that control is used for searching. It would be nice if the autocomplete control could accept an icon property that would result to something like the following:
Cheers
The text was updated successfully, but these errors were encountered: