SAPUI5 disable wizard bar

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 03:58:07

问题


I control the flow of the wizard through my own methods with nextStep and previousStep. But still I can not control the events of the wizardbar. I want to disable it. So no event will be fired, when the customer click on any step of the wizard bar.

Any idea how I can achieve it?


回答1:


if you REALLY want to achieve that, you would have to call some PRIVATE API of Wizard to disable the tap event from WizardProgressNavigator.

In your controller class, put the following code after Wizard is rendered.

this.oWizard = this.getView().byId("YOUR_WIZARD_CONTROL_ID");
this.oWizard._getProgressNavigator().ontap = function(){};


来源:https://stackoverflow.com/questions/42388549/sapui5-disable-wizard-bar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!