Not work many problem Ext v6
My code:
Code:
Ext.define('App.view.widgets.Notification', {
extend: 'Ext.ux.window.Notification',
alias: 'widget.notification',
corner: 'tr',
manager: 'real',
cls: 'ux-notification-light',
iconCls: 'ux-notification-icon-information',
stickOnClick: true,
closable: true,
title: 'information',
html: '',
slideInDelay: 800,
slideDownDelay: 1500,
resizable: false,
slideInAnimation: 'elasticIn',
slideDownAnimation: 'elasticIn',
setErrorIcon: function() {
this.iconCls = 'ux-notification-icon-error'
},
setTitle: function(title) {
this.title = title;
},
setMessage: function(message) {
this.html = message;
},
showMessage: function(message) {
this.html = message;
this.autoDestroyDelay = message.length * 150 + 3000;
this.show();
}
});
Code:
getNotifications: function (alignment) {
var me = this;
if (!me.manager.notifications[alignment]) { //line 288 error this variable: alignment
me.manager.notifications[alignment] = [];
}
return me.manager.notifications[alignment];
},