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

Ionic 3 Unable to fix maxlength for prompt input of alert controller

$
0
0

@Madhawa wrote:

Im used my mobile application for ionic-3 I have some small issue, I want to set the max length dynamically, I tried but not work that Unable to fix max length for prompt input of alert controller I want to know how to do that dynamically, Thanks

 doPrompt() {
        let prompt = this.alertCtrl.create({
          title: 'Add your digit code',
          message: "",
          inputs: [
            {


              name: 'title',


           placeholder: '* * * *',
              maxlenth:'4',
            },
          ],
          buttons: [
            {
              text: 'Cancel',
              handler: data => {
                console.log('Cancel clicked');
              }
            },
            {
              text: 'Save',
              handler: data => {
                console.log('Saved clicked');
              }
            }
          ]
        });
        prompt.present();
      }
    }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>