Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

How to select text in AlertController

$
0
0

@RaulAndrade wrote:

Hello everyone

I just want select text from AlertController to can COPY (ctrl + c)

home.ts

async res =>{
        await loading.dismiss()
        const alert = await this.alertController.create({
          header: 'Register Code',
          message: `Code : <strong>${res['code']}</strong>`,
          buttons: ['OK'],
          cssClass : 'TextSelectable'
        });
        await alert.present();
      }

home.scss

.TextSelectable{
    user-select: text;
}

but I can’t

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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