Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49184

Custom close button in Ionic popup

$
0
0

@surajhirestorm wrote:

I create a custom ionic popup for photo upload. My problem that I am not able to close that popup by using a corner close button. Please help me.
Which look like

Here's my code

             $scope.uploadPhoto = function () {
                var confirmPopup = $ionicPopup.show({

                    title: 'Upload Photo' + '<i class="ion-ios-close-outline popuoclose " ng-click="closePopup()"></i>',

                    scope: $scope,
                    buttons: [
                        {
                            text: '<i class="ion-ios-camera-outline thirty-text" ></i>',
                            type: 'button-positive',
                            onTap: function () {
                                $scope.takePicture();
                            }
               },
                        {
                            text: 'Gallery',
                            type: 'button-positive',
                            onTap: function () {
                                $scope.galleryPicture();
                            }
               },
             ]
            });
              $scope.closePopup = function () {
                  confirmPopup.close();
              };
            };

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49184

Trending Articles



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