Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseTabComponent Abstract

Abstract base class for custom tab components

Hierarchy

Index

Constructors

Properties

customTitle: string

User-defined title override

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)

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

viewContainer?: ViewContainerRef
viewContainerEmbeddedRef?: EmbeddedViewRef<any>

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>

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
  • 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