Класс: TouchBarSegmentedControl
Класс: TouchBarSegmentedControl
Create a segmented control (a button group) where one button has a selected state
Process: Main
This class is not exported from the 'electron'
module. Он доступен только в качестве возвращаемого значения других методов в Electron API.
new TouchBarSegmentedControl(options)
Свойства экземпляра
Для экземпляров TouchBarSegmentedControl
доступны следующие свойства:
touchBarSegmentedControl.segmentStyle
A string
representing the controls current segment style. Updating this value immediately updates the control in the touch bar.
touchBarSegmentedControl.segments
A SegmentedControlSegment[]
array representing the segments in this control. Updating this value immediately updates the control in the touch bar. Updating deep properties inside this array does not update the touch bar.
touchBarSegmentedControl.selectedIndex
An Integer
representing the currently selected segment. Changing this value immediately updates the control in the touch bar. User interaction with the touch bar will update this value automatically.
touchBarSegmentedControl.mode
A string
representing the current selection mode of the control. Can be single
, multiple
or buttons
.