Neotrixs
Neotrixs

Reputation: 2537

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.

Upvotes: 0

Views: 85

Answers (2)

UDID
UDID

Reputation: 2423

Make the correct property in code and you will get the desire result.

Your code should be

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

You can see in fiddler Fidller

Upvotes: 1

Alexander
Alexander

Reputation: 20244

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.

Upvotes: 3

Related Questions