-3
보기 설정 대화 상자에서 "확인"버튼 만 표시하면됩니다. 가능한가? 어떻게해야합니까?보기 설정 대화 상자에서 "취소"버튼을 숨기는 방법?
보기 설정 대화 상자에서 "확인"버튼 만 표시하면됩니다. 가능한가? 어떻게해야합니까?보기 설정 대화 상자에서 "취소"버튼을 숨기는 방법?
버튼 중 하나를 숨기는 것이 목적이 아니지만 해결 방법으로 해결할 수 있습니다. 을 직접 :
this._oDialog._dialog.mAggregations.endButton.setVisible(false); // assuming your dialog was initiated with: this._oDialog
당신의 getDialog 기능에서
당신은 ID 또는 대화 상자 객체를 통해 직접 버튼에 접속하여이 작업을 수행 할 수 거짓
_getDialog : function() {
if (!this._oDialog) {
this._oDialog = sap.ui.xmlfragment("sap.m.sample.ViewSettingsDialog.Dialog", this);
this.getView().addDependent(this._oDialog);
this._oDialog._dialog.mAggregations.endButton.setVisible(false); //set cancel button invisible
}
return this._oDialog;
},
handleOpenDialog: function() {
this._getDialog().open();
}
에있는 버튼의 표시 속성을 설정
ID :
sap.ui.getCore().byId("Your_View_Dialog_ID-cancelbutton").setVisible(false);
취소 버튼 ID consi 귀하의 "viewsettingsdialog-id"+ "-cancelbutton"의 ID를 사용하십시오.
내 대답과 관련하여 궁금한 점이 있으시면 아래 의견을 추가하십시오.
문제가 있습니까? 제발, 당신의 일 중 일부를 보여주세요. – Ted