Alert Controller with Input Button

#1

Hey everyone

Is it possible to create an alert Controller with Input Field and Button into Inputfield? For Exempel camera Icon and if this Click Open Camera??

#2

Yes, i’ts possible

 onClickResetPassword() {
        let alert = this._alertCtrl.create({
            title: "New Password",
            message: "type for send a recovery for a email",
            inputs: [
                {
                    name: "authUsername",
                    placeholder: "Your email(account)"
                }
            ],
            buttons: [
                {
                    text: "Cancel",
                    role: "Cancel"
                },
                {
                    text: "Send",
                    handler: data => {
                        let loader = this._loadCtrl.create({ content: "Sending Token" });
                        loader
                            .present()
                            .then(() => {
                                this._userProvider
                                    .sendResetPassword(data.authUsername)
                                    .subscribe(
                                        () => {
                                            let toast = this._toastCtrl.create({
                                                message: "E-mail sucessful",
                                                duration: 3000
                                            });
                                            toast.present();
                                            loader.dismiss();
                                        },
                                        error1 => {
                                            console.log(error1);
                                            loader.dismiss();
                                        }
                                    );
                            })
                            .catch(error => {
                                console.log(error);
                                loader.dismiss();
                            });
                    }
                }
            ]
        });
        alert.present();
    }