google-closure-library - 如何禁用 goog.ui.Dialog 中的关闭按钮?

标签 google-closure-library

我想去掉 Google 关闭对话框右上角的关闭/X 按钮。

我正在浏览文档 ( http://closure-library.googlecode.com/svn-history/r8/trunk/closure/goog/docs/class_goog_ui_Dialog.html),但找不到这样做的方法。

最佳答案

方法就在这里!参见 http://closure-library.googlecode.com/svn/docs/class_goog_ui_Dialog.html

dialog.setHasTitleCloseButton(false);

问候,

雷内

关于google-closure-library - 如何禁用 goog.ui.Dialog 中的关闭按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11058538/

相关文章:

javascript - 用于传递枚举的谷歌闭包编译器注释

javascript - 使用 XhrIo 填充 Object 的变量

google-closure-library - Google的Closure Javascript库支持哪些浏览器和设备?

javascript - 使用 Google Closure 库的 Ajax 窗口(弹出窗口)

javascript - closure compiler externs 解决了一个问题,但我不明白为什么?

javascript - 有什么理由不在不同的源文件中提供相同的模块吗?

javascript - 如何连接/组合但不使用 Closure Compressor 进行压缩?

javascript - 如何使用 Google Closure 编译器

css - 如何在 Google Closure Library 富文本编辑器中设置默认字体

javascript - 谷歌关闭 - 触发表单提交