Search code examples
cordovaextjssencha-touchsencha-touch-2

Only Title shows but message not shown in Sencha alert message box


I am new in Sencha, I try to use message box in my Sencha app for offline/online message, but in message box show only title it not show any message in the message box. code:

 Ext.Msg.show({
            title: '<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> You are Offline!!!',
            msg: 'Do you want to Save the changes? ',
            multiline: true,
            width: 300
        });

looks like:

enter image description here

Please help me.


Solution

  • You are not using the correct property. If you compare the docs, you see that they use message property, not msg. Also, please note that multiLine in the example has a capital L - while yours hasn't.