@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