Add docs and add isSelected arg
This commit is contained in:
parent
225ccab3d2
commit
718dc732ad
3 changed files with 8 additions and 2 deletions
|
@ -274,7 +274,7 @@ TouchBar.TouchBarSegmentedControl = class TouchBarSegmentedControl extends Touch
|
|||
if (typeof change === 'function') {
|
||||
this.onInteraction = (details) => {
|
||||
this._selectedIndex = details.selectedIndex
|
||||
change(details.selectedIndex)
|
||||
change(details.selectedIndex, details.isSelected)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue