mirror of
https://github.com/eugeny/tabby
synced 2025-12-13 19:25:44 +00:00
13 lines
454 B
TypeScript
13 lines
454 B
TypeScript
import type { MenuItemConstructorOptions } from 'electron'
|
|
import { BaseTabComponent } from '../components/baseTab.component'
|
|
import { TabHeaderComponent } from '../components/tabHeader.component'
|
|
|
|
/**
|
|
* Extend to add items to the tab header's context menu
|
|
*/
|
|
export abstract class TabContextMenuItemProvider {
|
|
weight = 0
|
|
|
|
abstract async getItems (tab: BaseTabComponent, tabHeader?: TabHeaderComponent): Promise<MenuItemConstructorOptions[]>
|
|
}
|