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

Onclick on the edit button keyboard should pop up

$
0
0

@premktr wrote:

I am using ionic4/angular. give me a sample code that should pop up the keyboard when the input field is focused or when the edit button is clicked.i have tried many ways including Cordova keyboard plugin and install web-view also but nothing works.is there any module or package i need to install for this thing?

 <ion-input type="text" placeholder="Enter your first name" [readonly]="isReadOnly" name="profile"
              [value]="firstName" #nameCtrl="ngModel" ngModel pattern="[A-Za-z]+" minlength="3" maxlength="20"
              [(ngModel)]="firstName" (focusout)="nameCtrl.valid && out_profile()" #name no-padding>
            </ion-input>
enable_name() {
    this.isReadOnly = false;
    this.keyboard.show();
  }

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>