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

[Ionic 2] Ion-item with icon, text and toggle

$
0
0

@Skee wrote:

Hello there,
I try to set up a list, where each item consists of the 3 elements icon, text and toggle.
Basicly exact the same as shown here: https://ionicframework.com/docs/components/#icon-list

But i dont get it to work.
This is my style:

<ion-list>
    <ion-item-divider color="light">General settings</ion-item-divider>
      <ion-item>
        <ion-icon name="notifications" item-left></ion-icon>
          Push notifications
        <ion-toggle [(ngModel)]="push_notifications"></ion-toggle>
      </ion-item>
      <ion-item>
        <ion-icon name="leaf" item-left></ion-icon>
          Herbology
        <ion-icon name="rose" item-right></ion-icon>
      </ion-item>
  </ion-list>

The second item works just fine, but in the first item i only see the icon and the toggle, but the text is gone.
Here is a screenshot for a better view:

Anyone can tell me, what i am doing wrong?

Thank you
Skee

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>