Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Getting RGB color from *ngFor

$
0
0

@rosenrot wrote:

I do have a list of colors holding integer values for red, green and blue. How do I color the text in those colors within a ion-item?

ion-list radio-group>
ion-item *ngFor="let color of colors" >
ion-label>{{color.name}}
ion-radio style="color:rgb(color.red,color.green,color.blue)" value="{{color.id}}" [checked]="color.active">/ion-radio>
/ion-item>
/ion-list>

How to do that? I'm a little bit lost.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>