Add support for spacer items

This commit is contained in:
Kevin Sawicki 2017-03-01 14:10:52 -08:00
parent f153d08297
commit 61aa9bbff4
3 changed files with 21 additions and 2 deletions

View file

@ -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)