Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseTabComponent Abstract

Abstract base class for custom tab components

Hierarchy

Index

Constructors

Properties

_color: null | string = null
_destroyCalled: boolean = false
_icon: null | string = null
activity: BehaviorSubject<boolean> = ...
blurred: Subject<void> = ...
customTitle: string

User-defined title override

destroyed: Subject<void> = ...
focused: Subject<void> = ...
hasActivity: boolean = false

Last tab activity state

hasFocus: boolean = false
hostView: ViewRef

ViewRef to the tab DOM element

parent: null | BaseTabComponent = null

Parent tab (usually a SplitTabComponent)

progress: BehaviorSubject<null | number> = ...
recoveryStateChangedHint: Subject<void> = ...

Ping this if your recovery state has been changed and you want your tab state to be saved sooner

title: string

Current tab title

titleChange: Subject<string> = ...
viewContainer?: ViewContainerRef
viewContainerEmbeddedRef?: EmbeddedViewRef<any>
visibility: BehaviorSubject<boolean> = ...

Accessors

  • get activity$(): Observable<boolean>
  • get blurred$(): Observable<void>
  • get color(): null | string
  • set color(value: null | string): void
  • get destroyed$(): Observable<void>
  • get focused$(): Observable<void>
  • get icon(): null | string
  • set icon(value: null | string): void
  • get progress$(): Observable<null | number>
  • get recoveryStateChangedHint$(): Observable<void>
  • get titleChange$(): Observable<string>
  • get visibility$(): Observable<boolean>

Methods

  • addEventListenerUntilDestroyed(element: HTMLElement, event: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • canClose(): Promise<boolean>
  • clearActivity(): void
  • destroy(skipDestroyedEvent?: boolean): void
  • displayActivity(): void
  • emitBlurred(): void
  • emitFocused(): void
  • emitVisibility(visibility: boolean): void
  • insertIntoContainer(container: ViewContainerRef): EmbeddedViewRef<any>
  • removeFromContainer(): void
  • setProgress(progress: null | number): void
  • setTitle(title: string): void
  • subscribeUntilDestroyed<T>(observable: Observable<T>, handler: ((v: T) => void)): void

Generated using TypeDoc