Created
October 26, 2018 22:01
Star
You must be signed in to star a gist
floating ion-input with icon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-header> | |
<ion-toolbar> | |
<ion-title> | |
Ionic Blank | |
</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content padding> | |
<ion-grid> | |
<ion-row align-items-end> | |
<ion-col size="1" align-self-bottom> | |
<ion-icon name="mail" size="large" [ngClass]="{'activeInputIcon': isLabelActive}"></ion-icon> | |
</ion-col> | |
<ion-col> | |
<ion-item> | |
<ion-label position="floating">Floating Label</ion-label> | |
<ion-input (ionBlur)="toggleIcon($event)" (ionFocus)="toggleIcon($event)"></ion-input> | |
</ion-item> | |
</ion-col> | |
</ion-row> | |
</ion-grid> | |
</ion-content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment