问题描述
我在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 (将#修改为@)