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

select icon without text

this selection menu looks like:

enter image description here

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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -