如何在SAPUI5中的JavaScript对话框中添加关闭按钮?

问题描述

我正在尝试向JavaScript视图对话框添加按钮。 不幸的是,该按钮没有显示(页眉按钮) 实际上,我希望对话框在角落有另一个按钮,以关闭对话框

this.oWarningMessageDialog = new Dialog({
                    type: DialogType.Message,title: this._oBundle.getText("PaymentPostponement"),state: ValueState.Warning,Header: new Button({
                        type: ButtonType.Reject,icon: "sap-icon://decline",press: function (oEvent) {
                            this.oWarningMessageDialog.close()
                            this.oWarningMessageDialog = null
                            Core.byId("ApproveMessageText").destroy()
                        }.bind(this)
                    }),beginButton: new Button({
                        type: ButtonType.Reject,text: this._oBundle.getText("Postpone"),

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)