Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Grid question

$
0
0

There's some ways like:

<ion-col *ngFor='#menu of menus; #i = index' class='cell-{{i}}'> // Not tested, i think it should work

But i would recommend you just add the class to the menu item in the array and use it with ngClass:

<ion-col *ngFor='#menu of menus' [ngClass]='menu.backgroundColor'>

Viewing all articles
Browse latest Browse all 228595

Trending Articles



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