Electron中的自定义HTML对话框 [英] Custom HTML Dialog in Electron
问题描述
如何(甚至有可能)在Electron中使用自定义HTML对话框?我知道Electron提供了某些对话框( showMessageDialog
, showErrorDialog
),但是这些对话框似乎不允许自定义HTML。
How (or is it even possible) to use custom HTML dialogs in Electron? I know that Electron provides certain dialogs (showMessageDialog
, showErrorDialog
) but these do not seem to allow custom HTML.
我不希望使用本机HTML对话框(对话框
)标记,因为它不会与用户融合界面。
I do not wish to use native HTML dialogs (dialog
) tag as it does not 'blend in' with the user interface.
任何帮助将不胜感激。谢谢!
Any help would be much appreciated. Thanks!
推荐答案
您可以创建模态浏览器窗口,如果愿意,可以创建无框架浏览器窗口。参见 http://electron.atom.io/docs/api/browser-window/ 。
You can create a BrowserWindow that's modal and, if you like, frameless. See http://electron.atom.io/docs/api/browser-window/.
这篇关于Electron中的自定义HTML对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!