Options
All
  • Public
  • Public/Protected
  • All
Menu

Holds the logic for tab management in AbstractTabViewComponent. If you want to implement your own TabViewComponent, you might want to extend this class to hold your logic.

Hierarchy

  • TabView

Implements

Index

Constructors

Properties

openedTabs: OpenedTab[]

Holds the tabs that are opened in the tab view, and allows them to be bound to HTML.

selectedIndex: FormControl

Holds the index of the currently selected tab.

Selected index initializes to 0.

uniqueIdCounter: IncrementingCounter = ...
DYNAMIC_TAB_VIEW_ID_SEGMENT: "dynamic" = 'dynamic'

Methods

  • checkIndexRange(index: number): void
  • closeTab(index: number, force: boolean, error: string): void
  • Closes the tab at the given index.

    If the conditions for closing a tab are not met throws an Error with the given message.

    Parameters

    • index: number

      index of the tab that should be closed

    • force: boolean

      when true closes a tab even if it's cantBeClosed attribute is set to true

    • error: string

      the message that should be displayed if the conditions for closing a tab are not met

    Returns void

  • closeTabIndex(index: number, force?: boolean): void
  • closeTabUniqueId(uniqueId: string, force?: boolean): void
  • currentlySelectedTab(): number
  • findIndexExistingTab(newTab: OpenedTab): number
  • getTabIndex(uniqueId: string): number
  • hasCaseFilterParamSet(tab: OpenedTab): boolean
  • initializeTab(index: number): void
  • openNewTab(newTab: OpenedTab, autoswitch: boolean): string
  • openTab(tabContent: TabContent, autoswitch?: boolean, openExisting?: boolean): string
  • searchesForOneCaseId(tab: OpenedTab): boolean
  • setTabIndexWithNotification(index: number): void
  • switchToTabIndex(index: number): void
  • switchToTabUniqueId(uniqueId: string): void
  • tabChange(event: MatTabChangeEvent): void

Generated using TypeDoc