me.updatePreview(me.raw, rec);
},
+ toggleAttachments: function(button) {
+ var grid = this.lookup('attachmentlist');
+ grid?.setVisible(!grid?.isVisible());
+ },
+
btnHandler: function(button, e) {
let me = this;
let action = button.reference;
'button[reference=raw]': {
click: 'toggleRaw',
},
+ 'button[reference=attachments]': {
+ click: 'toggleAttachments',
+ },
'pmgQuarantineList': {
selectionChange: 'onSelectMail',
itemkeypress: 'keyPress',