CONFIRMATION MSG BOX IN SENCHA TOUCH

Chintoo Semi

Total Post:135

Points:947
Posted by  Chintoo Semi
 1497  View(s)
Ratings:
Rate this:
 Hi Expert,

I want to create confirmation alert message box in Sencha Touch. Please tell me how to do this?

Your help is a great appreciated. 
  1. Arun Singh

    Post:68

    Points:476
    Re: confirmation msg box in sencha touch

    Hello Chintoo Semi,
    First of all, I would like to correct one thing in your question, There is nothing like Confirmation Alert Message Box in Sencha Touch. Sencha Touch provides Prompt Message box, Confirmation Message Box and Alert Message Box. You can use these message as per your requirement.
    Here the code is:
    Prompt Message Box:
        Ext.Msg.prompt('MessageBox_title',
          'Enter screen name',
           function(btn, text){
           if(btn == 'ok'){
              }
          }
         });


    Confirmation Message Box:
    Ext.Msg.confirm("Confirmation", "Are you sure you want to send this info?", function(btn){
                    if (btn === 'yes'){
                    }
                });


    Alert Message Box:
       Ext.Msg.alert('MessageBox_Title','This is alert message box');

    Please check out the following link for more details on Sencha Touch Messages Box:

    http://dev.sencha.com/deploy/ext-4.0.1/examples/message-box/msg-box.html

    I hope it might be helpful for you. Thanks !!

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!