UNPKG

@ux-aspects/ux-aspects

Version:

Open source user interface framework for building modern, responsive, mobile big data applications

47 lines (46 loc) 2.29 kB
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core'; import { NavigationExtras } from '@angular/router'; import * as i0 from "@angular/core"; export declare class TabComponent implements OnInit, OnDestroy, OnChanges { private readonly _tabsetService; private readonly _changeDetector; private readonly _tabset; /** Define the tab unique id */ set id(id: string); get id(): string; /** Define the active state of this tab */ set active(active: boolean); /** Define if this tab is disabled */ disabled: boolean; /** Define the tab heading */ heading: string; /** Define the tab router path */ route: string | unknown[]; /** Define the tab router additional parameters */ routerLinkExtras: NavigationExtras; /** provide a custom class for the tab */ customClass: string; /** Emits when the active state changes. */ activeChange: EventEmitter<boolean>; /** Emit when this tab is selected */ activated: EventEmitter<void>; /** Emit when this tab is deselected */ deactivated: EventEmitter<void>; /** Store a custom header templateRef */ headingRef: TemplateRef<void>; _active: boolean; _id: string; /** Unsubscribe from all subscriptions when component is destroyed */ private readonly _onDestroy; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; activate(): void; deactivate(): void; /** * Update the internal active state and emit appropriate events. */ private setActive; static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "ux-tab", never, { "id": { "alias": "id"; "required": false; }; "active": { "alias": "active"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "route": { "alias": "route"; "required": false; }; "routerLinkExtras": { "alias": "routerLinkExtras"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, { "activeChange": "activeChange"; "activated": "activated"; "deactivated": "deactivated"; }, ["headingRef"], ["*"], false, never>; }