Class: TouchBarSlider
Class: TouchBarSlider
Create a slider 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 TouchBarSlider(options)
Instance Properties实例属性
The following properties are available on instances of TouchBarSlider
:TouchBarSlider
实例上提供了以下属性:
touchBarSlider.label
A 表示滑块当前文本的string
representing the slider's current text. string
。Changing this value immediately updates the slider in the touch bar.更改此值会立即更新触摸条中的滑块。
touchBarSlider.value
A 表示滑块当前值的number
representing the slider's current value. number
。Changing this value immediately updates the slider in the touch bar.更改此值会立即更新触摸条中的滑块。
touchBarSlider.minValue
A 表示滑块当前最小值的number
representing the slider's current minimum value. number
。Changing this value immediately updates the slider in the touch bar.更改此值会立即更新触摸条中的滑块。
touchBarSlider.maxValue
A 表示滑块当前最大值的number
representing the slider's current maximum value. number
。Changing this value immediately updates the slider in the touch bar.更改此值会立即更新触摸条中的滑块。