简体   繁体   中英

Ionic: ion-item with fixed label and paragraph

Is possible create three ion-item like these using Ionic Framework?

在此处输入图片说明

No problem with the first one (standard disabled ion-input with fixed label ). I have some issue with the second one wich contains a fixed label , a <p> tag in the middle and a right button . The last one, also, a fixed label and a button with a paragraph in the middle content.

Can anyone help me? Thank you

I am not sure about what you want, but I think it is similar to what you want.

<ion-content padding>
<ion-list>
  <ion-list-header disabled="true" ><ion-label color="primary">Disabled</ion-label><ion-label >Item Disabled</ion-label></ion-list-header>
  <ion-item>
    <ion-icon ios="ios-close" md="md-close" color="primary" item-end></ion-icon>
    <ion-label color="primary">Label</ion-label>
    <ion-label> Value</ion-label>
  </ion-item>
  <ion-item>

    <ion-label color="primary">Label</ion-label>
    <ion-label><button ion-button round outline><ion-icon name="star"  color="primary"> </ion-icon></button>(Student)</ion-label>

    <ion-icon ios="ios-close" md="md-close"></ion-icon>
  </ion-item>
</ion-list>
</ion-content> 

thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM