Represents the tab in the header of a given tab strip

Hierarchy (view full)

Constructors

Properties

TabCloseable: boolean = false

Determines if the tab can be closed by a user, or not. Defaults to false.

_id: any = null
_name: string = ""
_props: any = null
_tabSelected: boolean = false
_visible: boolean = true
cdr: ChangeDetectorRef
elementRef: ElementRef<any>
index: number

Accessors

  • get TabSelected(): boolean
  • Determines if the tab is currently selected or not. This is set by the TabStrip component automatically when the SelectedTabIndex is set, do not set this directly.

    Returns boolean

  • set TabSelected(value): void
  • Parameters

    • value: boolean

    Returns void

Methods

  • Event handler for when the close button is clicked on the tab. This will fire the BeforeTabClosed event on the TabStrip component, and if it is not cancelled, will then fire the AfterTabClosed event.

    Parameters

    • $event: MouseEvent

    Returns void

  • Event handler for when this tab is clicked to select it, generally not a great idea to call this directly, but it is possible to call directly to simulate a click. The preferred approach is to set the SelectedTabIndex property on the TabStrip component directly.

    Returns void