ion-label
を100%幅カスタムフォームコントロールでどのように使用できますか? 現在、ion-label
を自分のフォーム内のion-item
に追加すると、カスタムフォームコントロール(ion-input
ではなく)を使用しています。カスタムフォームコントロールフィールドは表示されなくなりました。カスタムフル幅フォームコントロール付きイオンラベル
ion-label
をカスタムフォームコントロールで使用できるように変更するにはどうすればよいですか?
コード例:私もこれを試してみました
<ion-item>
<ion-label floating>Keywords</ion-label>
<custom-input formControlName="content"></custom-input>
</ion-item>
:
<!-- Item with a label and content -->
<ion-item>
<ion-label>
Item Label
</ion-label>
<div item-content>
Item Content will be next to the label (not full width)
<custom-input formControlName="content" item-end></custom-input>
</div>
</ion-item>
は、しかし、これは私だけのページの幅の割合を取って終わるん。 item-end
で
私はcustom-input
が100%の幅(例えばテキストエディタ)
ソリューションダブルアイテムに触発さ
になりたいです@Sampathのアイデア:
<ion-item no-lines>
<ion-label>Content</ion-label>
</ion-item>
<ion-item>
<custom-input formControlName="content"></custom-input>
</ion-item>
現在の 'code'を表示できますか? – Sampath
@Sampathサンプルコードを追加しました。 – Eraldo