angular - Angular2 Material Design Select Component - Styling selected Item -
i'm using <md-select>component of angular2 material switch list layouts (grid or bullet list). when layout has been chosen, select-box should show icon. when choosing layout menu showing both icon , text.
here's should like
this selection menu looks like:
my code far:
<md-select [(ngmodel)]="selectedviewstate"> <md-option *ngfor="let viewstate of viewstates" [value]="viewstate.icon"> <i class="mdi {{viewstate.icon}}"></i> {{viewstate.title}} </md-option> </md-select> so, how can style this? didn't find regarding in docs.


Comments
Post a Comment