Add support for spacer items
This commit is contained in:
parent
f153d08297
commit
61aa9bbff4
3 changed files with 21 additions and 2 deletions
|
@ -153,6 +153,14 @@ TouchBar.Label = class TouchBarLabel extends TouchBarItem {
|
|||
}
|
||||
}
|
||||
|
||||
TouchBar.Spacer = class TouchBarSpacer extends TouchBarItem {
|
||||
constructor (config) {
|
||||
super(config)
|
||||
this.type = 'spacer'
|
||||
this.size = config.size
|
||||
}
|
||||
}
|
||||
|
||||
TouchBar.Popover = class TouchBarPopover extends TouchBarItem {
|
||||
constructor (config) {
|
||||
super(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue