Ok, this allows text to wrap:
<ion-item text-wrap>
add your text here it will wrap it
</ion-item>
In my .ts file, i have a list of sortable card, but using an <ion-item>
inside the card-list, problems arise.
Why the <ion-item>
inside my card has the (ionItemReorder)="reorderItems($event)"
?
Ok the gray background, cause off .scss.
That’s my .ts file:
<ion-content class="paginaListeDellaSpesa">
<ion-list no-lines reorder="true" (ionItemReorder)="reorderItems($event)">
<ion-item *ngFor="let lista of elencoListe">
<ion-card>
<ion-grid>
<ion-row>
<ion-col width-75>
<ion-card-content>
<ion-card-title>
{{lista.titolo}}
</ion-card-title>
<ion-item>
Descrizione: {{lista.descrizione}}
</ion-item>
<p>Frequenza: {{lista.frequenza}}</p>
</ion-card-content>
</ion-col>
<ion-col width-25>
<img src="{{lista.userImg}}" class="imgLista" />
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<button clear small danger (click)="goTo($event)">
<ion-icon name='archive'></ion-icon>
Riempi
</button>
</ion-col>
<ion-col>
<button clear small danger (click)="editLista(lista)">
<ion-icon name='paper'></ion-icon>
Modifica
</button>
</ion-col>
<ion-col>
<button clear small danger (click)="deleteLista(lista)">
<ion-icon name='trash'></ion-icon>
Elimina
</button>
</ion-col>
</ion-row>
</ion-grid>
</ion-card>
</ion-item>
</ion-list>
</ion-content>
and my *.scss file:
if it were possible to add the text-wrap
to other object, it would be perfect…
Like that (but without the wrap and the <ion-item>
implemented):