类:TouchBarPopover
Class: TouchBarPopover
为原生的 macOS 应用程序创建触摸栏弹出窗口
进程:主进程
此类未从 'electron'
模块导出。它仅作为 Electron API 中其他方法的返回值可用。
new TouchBarPopover(options)
实例属性
TouchBarPopover
实例上有以下属性可用
touchBarPopover.label
表示弹出窗口当前按钮文本的 string
。更改此值将立即更新触摸栏中的弹出窗口。
touchBarPopover.icon
表示弹出窗口当前按钮图标的 NativeImage
。更改此值将立即更新触摸栏中的弹出窗口。