Implements

  • AfterContentInit
  • AfterContentChecked
  • AfterViewInit

Constructors

Properties

BeforeTabClosed: EventEmitter<TabCancelableEvent> = ...

This event is fired before a tab is closed. If you set cancel to true, the tab will not be closed.

BeforeTabSelected: EventEmitter<TabCancelableEvent> = ...

This event is fired before a tab is selected. If you set cancel to true, the tab will not be selected.

FillHeight: boolean = true
FillWidth: boolean = true
ResizeContainer: EventEmitter<any> = ...

This event is raised whenever the TabStrip component determines it would be advisable to conduct any necessary resizing action in the parent container. Implement an event handler to handle this, if desired, for your application.

ScrollAmount: number = 150

This property determines how many pixels to scroll when the scrollLeft or scrollRight methods are called.

TabClosed: EventEmitter<TabClosedEvent> = ...

This event is fired after a tab is closed.

TabContextMenu: EventEmitter<TabContextMenuEvent> = ...

This event is fired when a tab is right-clicked and the context menu event from the tab header fires.

TabScrolled: EventEmitter<any> = ...

This event is fired whenever the tab control is scrolled left or right. This event can be invoked either due to a user clicking on the left/right buttons or by calling the scrollLeft/scrollRight methods, or by the ScrollIntoView method being called.

TabSelected: EventEmitter<TabEvent> = ...

This event is fired when a tab is selected.

_selectedTabIndex: number = 0
_viewInitialized: boolean = false
cdr: ChangeDetectorRef
showLeftButton: boolean = false
showRightButton: boolean = false
tabBodies: QueryList<MJTabBodyComponent>
tabInnerContainer: ElementRef<any>
tabs: QueryList<MJTabComponent>
OutputDebugInfo: boolean = false

Accessors

Methods

  • Method will close the specified tab number. It is automatically called by a tab that has TabCloseable set to true, if the user clicks the close button, and can be called programatically as well.

    Parameters

    • tabIndex: number

    Returns Promise<void>

  • Call this method if you are ever dynamically adding or removing tabs from the component over time using

    Returns void

    If

    or *ngIf or other similar methods. This will force the tab strip to re-evaluate the tabs and tab bodies and update the display accordingly.

  • This method will attempt to set the current tab by name. If the tab is found, it will be selected and the method will return the tab object. If the tab is not found, the method will return undefined.

    Parameters

    • tabName: string

    Returns undefined | MJTabComponent

  • This method will scroll the specified tab index into view if it is not currently visible in the tab strip.

    Parameters

    • tabIndex: number

    Returns void