Prompt value


#1

how to pick the prompt value ?

let prompt = this.alertCtrl.create({
        message: "Item com valor zerado, digite o valor do item...",
        inputs: [
          {
            name: 'valor',
            placeholder: '0.00'
          },
        ],
        buttons: [
          {
            text: 'Cancelar',
            handler: data => {
              prompt.dismiss();
            }
          },
          {
            text: 'Ok',
            handler: data => {
              this.database.presentToast();
            }
          }
        ]
      });
      prompt.present();

#2

There are some pretty great docs over here: Alert Docs.


#3

thanks data.nameofinput


#4

inputs: [
{
name: ‘valor’,
placeholder: ‘0.00’
},
],

{
text: ‘Ok’,
handler: data => {
this.presentToast(data.valor);
}
}

return object… what is wrong ?