如何使 Xpage 中的按钮变灰 [英] How to grayed out the button in Xpage

查看:27
本文介绍了如何使 Xpage 中的按钮变灰的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我解决以下情况:

Please help me out in the below case:

当我们点击当前窗口中的按钮时(标题栏中有取消和确定按钮).然后它应该显示带有两个按钮的小弹出窗口.(应用默认值和取消按钮)

When we clicked on the button in the current window (which has Cancel and OK button in the title bar). then it should display the small pop up with Two buttons. (Apply defaults and cancel button)

当我们点击小弹出窗口中的 Apply defaults 时,弹出窗口应该关闭,然后显示前一个窗口,并在标题栏中禁用(变灰)取消按钮.

When we clicked on the Apply defaults in the small pop up, then the pop up should be closed and then display the previous window with disable(grayed out) the cancel button in the title bar.

请告诉我如何使取消按钮变灰

Please let me know how to grayed out the cancel button

推荐答案

subbu,

将标题栏中的取消"按钮设为 dijit.form.Button.当用户单击弹出窗口中的应用默认值"按钮时,您可以调用客户端脚本来禁用它:

Make your "Cancel" button in the title bar a dijit.form.Button. When the user clicks the "Apply defaults" button in the popup, you can then call a clientside script to disable it:

dijit.byId("#{id:yourCancelsButtonId}").setDisabled(true);

这篇关于如何使 Xpage 中的按钮变灰的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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