UNPKG

@funidata/ngx-fudis

Version:

Funidata Design System.

48 lines (47 loc) 2.01 kB
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core'; import { TabNavigationPanelComponent } from './tab-navigation-panel.component'; import * as i0 from "@angular/core"; /** * A Tab navigation bar component. */ export declare class TabNavigationBarComponent implements AfterViewInit, OnDestroy { /** * Unique identifier for the component */ id: string; /** * Reference to the TabNavigationPanelComponent */ get panel(): TabNavigationPanelComponent; set panel(value: TabNavigationPanelComponent); /** * If panel is not defined you can define the element id where the tab content is projected */ ariaControls?: string; /** * Variant option */ variant?: 'primary' | 'secondary'; tabNavigation: ElementRef; scrollContainer: ElementRef; protected _leftContentHidden: import("@angular/core").WritableSignal<boolean>; protected _rightContentHidden: import("@angular/core").WritableSignal<boolean>; private _ariaControls; private _tabPanel; private _currentActiveTabId; private _scrollSubscription; private _resizeObserver; private readonly _scrollAmount; ngAfterViewInit(): void; getAriaControls: () => import("@angular/core").WritableSignal<string | undefined>; isScrollable: () => boolean; assertScroll(): void; scrollLeft(scrollToStart?: boolean): void; scrollRight(scrollToEnd?: boolean): void; private _scrollTo; private _updatePanel; updateActiveLink(id: string): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<TabNavigationBarComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TabNavigationBarComponent, "fudis-tab-navigation-bar", never, { "id": { "alias": "id"; "required": false; }; "panel": { "alias": "panel"; "required": false; }; "ariaControls": { "alias": "ariaControls"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], true, never>; }