Quantcast
Viewing all articles
Browse latest Browse all 49215

Hello, I'm trying to create a custom popup

Image may be NSFW.
Clik here to view.
2020-10-25 08_57_40-Ionic Lab and 32 more pages - Personal - Microsoft​ Edge

the character escape for new lines in the code is not working and the label for the input got lost somewhere… Also the popup dismisses when the handler is empty

let alert = this.alertCtrl.create({

      header: trip.name,

      subHeader: "Enter the number of slots\r\nPricing for the slots is " + trip.price + "\r\n" +

      "Slots remaining " + trip.slots + "\r\n"+ "Bookable slots " + (trip.slots*.1),

      inputs: [

        {

          label: 'Slots',

          name: 'Slots',

          placeholder: 'Slots',

          type: 'number',

          value: this.tripvalues,

          max: Math.trunc((trip.slots*.1)),

          min: 1

        }

      ],

      buttons: [

        {

          text: 'Cancel',

          role: 'cancel',

          handler: data => {

            console.log('Cancel clicked');

          }

        },

        {

          text: 'Login',

          handler: data => {

            

          }

        }

      ]

    });

    (await alert).present();

  }

Also how do I implement something like this??

Image may be NSFW.
Clik here to view.
2020-10-25 09_03_08-Shopping Cart Item Quantity Increment Decrement with AJAX - Phppot and 34 more p

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49215

Trending Articles



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