I am trying to implement the alert boxes in sencha touch application which looks similar to iPhone alert boxes.
I have used Ext.Msg.alert('', 'Hello World')
to implement the alert boxes but it looks different from iPhone alert boxes. I have attached both the images for reference.
Any guidance will be very helpful.
Thank you,
First you need to add
requires: ['Ext.device.Notification']
to register notification method then use below code to alert
Ext.device.Notification.show({
title: 'Test Adi',
message: 'Is your email address is: adnan@sencha.com',
buttons: Ext.MessageBox.OKCANCEL,
callback: function(button) {
if (button == "ok") {
console.log('Verified');
} else {
console.log('Nope.');
}
}
});
instead of
Ext.Msg.alert('', 'Hello World')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.