Member Junction
    Preparing search index...

    Implements

    • AfterContentInit
    • AfterContentChecked
    • AfterViewInit
    Index

    Constructors

    Properties

    _selectedTabIndex: number = 0
    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

    No longer read — the strip sizes to content and the HOST owns region sizing. Kept only so existing bindings compile; remove on the next major.

    FillWidth: boolean = true

    No longer read — the strip sizes to content and the HOST owns region sizing. Kept only so existing bindings compile; remove on the next major.

    IdBase: string = ...

    Per-instance id base pairing each tab with its panel (aria-controls / aria-labelledby). Index-suffixed by the tab/body components themselves once syncTabIndexes has run.

    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.

    showLeftButton: boolean = false
    showRightButton: boolean = false
    tabBodies: QueryList<MJTabBodyComponent>
    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.

    tabInnerContainer: ElementRef
    tabs: QueryList<MJTabComponent>
    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.

    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>

    • A callback method that is invoked immediately after the default change detector has completed checking all of the directive's content.

      Returns void

    • A callback method that is invoked immediately after Angular has completed initialization of all of the directive's content. It is invoked only once when the directive is instantiated.

      Returns void

    • A callback method that is invoked immediately after Angular has completed initialization of a component's view. It is invoked only once when the view is instantiated.

      Returns void

    • Keyboard navigation from the shared mjTabList directive (arrows / Home / End / Enter).

      The directive reports a POSITION among the rendered [role="tab"] elements, which is already this component's identity model, so the mapping is direct. Selecting also scrolls the tab into view — arrowing to a tab hidden behind the overflow edge would otherwise move focus somewhere the user cannot see.

      Parameters

      • request: { Index: number }

      Returns void

    • Delete / Backspace on a focused tab. Routed through the SAME CloseTab path a click on the close button uses, so the cancelable BeforeTabClosed contract holds for keyboard users too. Ignored for tabs that are not closeable.

      Parameters

      • request: { Index: number }

      Returns void

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

      Returns void

      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 scroll the specified tab index into view if it is not currently visible in the tab strip.

      Parameters

      • tabIndex: number

      Returns void

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