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

Create dynamically ion-row?

$
0
0

@Kaniar_Kode wrote:

Hi there !

First, I’d like to know if it’s possible to create a ion-row (or ion-item) dynamically…
In the following code, I have a ion-row with a ion-item in which I have 2 ion-thumbnail and a ion-label.
I’d like to create a specific thumbnail when you click on on it, you can choose from a list the picture wanted. Each thumbnail has to be unique because I’d like to save the path of the picture in an array.
As you can see, it’s repeat all the time the same ion-thumbnail…
I really don’t know how to do that ! :tired_face: I don’t know if I’m really clear enough… If someone understand what I mean and could enlighten me, it will be awesome ! :star_struck:

      <ion-row class="row" responsive-sm wrap *ngFor="let n of nTeams">
        <ion-item>
          <ion-thumbnail item-start (click)="chooseTeam()">
            <img src="{{'../../assets/imgs/' + fileName + '.png'}}">
          </ion-thumbnail>
          <ion-label text-center>23 - 19</ion-label>
          <ion-thumbnail item-end (click)="chooseTeam()">
            <img src="{{'../../assets/imgs/' + fileName + '.png'}}">
          </ion-thumbnail>
        </ion-item>
      </ion-row>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



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