我在 UiApp 中创建了一个对话框,使用,
app.createDialogBox();
我需要在查看详细信息后关闭它并返回主 UI。我在对话框中没有找到任何关闭按钮。
我在文档中看到了一个名为addCloseHandler()的函数。
我应该用它来关闭对话框,任何例子还是有其他方法?
对不起,如果我的问题太天真了。
我在 UiApp 中创建了一个对话框,使用,
app.createDialogBox();
我需要在查看详细信息后关闭它并返回主 UI。我在对话框中没有找到任何关闭按钮。
我在文档中看到了一个名为addCloseHandler()的函数。
我应该用它来关闭对话框,任何例子还是有其他方法?
对不起,如果我的问题太天真了。
我认为对话框实际上是“显示”和“隐藏”而不是“打开”和“关闭”。按照这个想法,setVisible(false)
可能会如你所愿。您可能还想看看setAutoHideEnabled。
After a few tests on this it seem there is an issue 231 and 676 (always classified 'New') concerning this method but it was open in september 2010 and july 2011 respectively and nothing seems to move...
So up to now it seems to be a nice looking panel with a small shadow behind it and very shiny grey caption area that supports HTML... not so bad ;-) but that can just be set (in)Visible. The only major difference with other panels is that its place is kept free even if it's hidden. I used it in a test app (use choose a folder to close / needs authorization on documents & mails, issue 676 has a simple test code)