如何解决未显示Magento确认对话框的按钮
我在Magento中创建了一个确认对话框,但是对话框的按钮是隐藏的。我看到所有按钮都在页脚标签中,而页脚标签则不显示任何按钮。我该怎么办? 这是我的代码:
confirmation({
title: $.mage.__('Confirmation Title'),content: $.mage.__('Confirmation Content'),actions: {
confirm: function() {
// do something when the confirmation button is clicked
},cancel: function() {
// do something when the cancel button is clicked
},always: function() {
// do something when the modal is closed
}
},buttons: [{
text: $.mage.__('Bt1'),class: 'action-secondary action-dismiss',click: function (event) {
this.closeModal(event);
}
},{
text: $.mage.__('Bt2'),class: 'action-primary action-accept',click: function (event) {
this.closeModal(event,true);
}
},{
text: $.mage.__('Bt3'),class: 'action primary action-new',click: function (event) {
// New action
}
}]
});
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。