Class: TouchBarPopover
Class: TouchBarPopover
Create a popover in the touch bar for native macOS applications在触摸条中为本机macOS应用程序创建弹出窗口
Process:进程:Main
This class is not exported from the 此类不是从'electron'
module. 'electron'
模块导出的。It is only available as a return value of other methods in the Electron API.它只能作为Electron API中其他方法的返回值使用。
new TouchBarPopover(options)
Instance Properties
The following properties are available on instances of TouchBarPopover
:TouchBarPopover
实例上提供了以下属性:
touchBarPopover.label
A 一个string
representing the popover's current button text. string
,表示弹出窗口的当前按钮文本。Changing this value immediately updates the popover in the touch bar.更改此值会立即更新触摸栏中的弹出窗口。
touchBarPopover.icon
A 表示弹出窗口当前按钮图标的NativeImage
representing the popover's current button icon. NativeImage
。Changing this value immediately updates the popover in the touch bar.更改此值会立即更新触摸栏中的弹出窗口。