Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AppService

Hierarchy

  • AppService

Index

Properties

_activeTab: null | BaseTabComponent = null
_mruTabs: BaseTabComponent[] = []

MRU list – most-recently-used tab is at index 0

activeTabChange: Subject<null | BaseTabComponent> = ...
closedTabsStack: RecoveryToken[] = []
completionObservers: Map<BaseTabComponent, CompletionObserver> = ...
lastTabIndex: number = 0
mruTraversalIndex: number = 0

Index into _mruTabs that the user is currently browsing (0 = "selected before traversal started")

mruTraversing: boolean = false

True while the user is holding a modifier and cycling through the MRU list

ready: AsyncSubject<void> = ...
recoveryStateChangedHint: Subject<void> = ...
skipMRUUpdate: boolean = false

Set to true inside nextMRUTab/previousMRUTab so selectTab() skips the MRU update

tabClosed: Subject<BaseTabComponent> = ...
tabDragActive: Subject<null | BaseTabComponent> = ...
tabOpened: Subject<BaseTabComponent> = ...
tabRemoved: Subject<BaseTabComponent> = ...
tabs: BaseTabComponent[] = []
tabsChanged: Subject<void> = ...

Accessors

  • get ready$(): Observable<void>
  • get tabsChanged$(): Observable<void>

Methods

  • closeAllTabs(): Promise<boolean>
  • closeTab(tab: BaseTabComponent, checkCanClose?: boolean, ignorePinned?: boolean): Promise<void>
  • closeWindow(): Promise<void>
  • commitMRUTraversal(): void
  • Finish an MRU traversal session: move the currently-previewed tab to the front of the MRU list so the next traversal starts from it. Should be called when the user releases the modifier key.

    Returns void

  • getPinnedTabCount(): number
  • moveSelectedTabLeft(): void
  • moveSelectedTabRight(): void
  • nextMRUTab(): void
  • nextTab(): void
  • previousMRUTab(): void
  • previousTab(): void
  • showSelector<T>(name: string, options: SelectorOption<T>[]): Promise<T>
  • stepMRUTab(delta: number): void
  • toggleLastTab(): void

Generated using TypeDoc