阻止 TreeFile 点击 Qooxdoo?
最近我开发了一个qooxdoo应用程序,它有多种形式。我在树中管理表单,因此用户可以通过单击树中的项目轻松导航到每个表单,然后相应的表单将显示在主容器中。我的问题是,如果用户在一个表单中进行任何更改但尚未保存,然后尝试通过单击树项导航到另一个表单,则应用程序应该显示警报。所以我必须能够阻止表格被显示。如果这在 qooxdoo 中可行吗?以及如何做到这一点
Recently I develop an qooxdoo application which have several forms. I manage the form in a Tree, so user can easily navigate to every form by clicking an item in the tree then the corresponding form will be shown in the main Container. My question is, if user make any changes in one form and haven't save it yet then they try to navigate to another form by clicking the tree item, the application should show an alert. So I must able to prevent the form being shown up. If this possible in qooxdoo? And how to do that
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在表单发生任何更改后立即将树容器设置为禁用,并在保存表单时再次启用它...此外,您可以在树上显示一条注释:“保存表单以重新启用树导航”被禁用......为什么让用户在树上进行无用的单击,只是弹出一个他不能这样做的注释......
You could set the tree container to disabled as soon as any change in the form ocures and enable it again whenever the form is saved ... additionally you might display a note on the tree: "Save form to reenable tree navigation" whenever the tree gets disabled ... why let the user do a useless click on the tree only to popup a note that he can not do it ...