SAPUI5 禁用向导栏 [英] SAPUI5 disable wizard bar

查看:40
本文介绍了SAPUI5 禁用向导栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过自己的方法使用 nextStep 和 previousStep 来控制向导的流程.但我仍然无法控制向导栏的事件.我想禁用它.因此,当客户点击向导栏的任何步骤时,不会触发任何事件.

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.

知道如何实现它吗?

推荐答案

如果你真的想要实现这一点,你将不得不调用一些PRIVATE API>WizardWizardProgressNavigator 禁用点击事件.

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(){};

这篇关于SAPUI5 禁用向导栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆