UNPKG

@ux-aspects/ux-aspects

Version:

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

31 lines (30 loc) 963 B
import { OnDestroy } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; import { CardTabComponent } from './card-tab/card-tab.component'; import * as i0 from "@angular/core"; export declare class CardTabsService implements OnDestroy { tab$: BehaviorSubject<CardTabComponent>; tabs$: BehaviorSubject<CardTabComponent[]>; position$: BehaviorSubject<string>; private readonly _subscription; constructor(); ngOnDestroy(): void; /** * Add a tab to the list of tabs */ addTab(tab: CardTabComponent): void; /** * Remove a tab from the list */ removeTab(tab: CardTabComponent): void; /** * Select the tab */ select(tab: CardTabComponent): void; /** * Set the position of the tab content */ setPosition(position: string): void; static ɵfac: i0.ɵɵFactoryDeclaration<CardTabsService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CardTabsService>; }