@hxui/angular
Version:
An Angular library based on the [HXUI design system](https://hxui.io).
39 lines (38 loc) • 1.77 kB
TypeScript
import { AfterContentInit, OnDestroy } from '@angular/core';
import { TabDirective } from './tab.directive';
import { TabsetConfig } from './tabset.config';
import * as i0 from "@angular/core";
export declare class TabsetComponent implements OnDestroy, AfterContentInit {
/** if true tabs will be placed vertically */
vertical: boolean;
/** if true tabs fill the container and have a consistent width */
justified: boolean;
hasInfo: boolean;
/** navigation context class: 'tabs' or 'pills' */
get type(): string;
set type(value: string);
contentCustomClass: string;
stickyHeader: boolean;
stickyHeaderOffset: number;
tag: 'link' | 'button';
changeFn: () => Promise<boolean>;
private _tabList;
tabs: TabDirective[];
protected isDestroyed: boolean;
protected _type: string;
constructor(config: TabsetConfig);
ngAfterContentInit(): void;
private _selectTab;
selectTab(tab: TabDirective): void;
ngOnDestroy(): void;
addTab(tab: TabDirective): void;
removeTab(tab: TabDirective, options?: {
reselect: boolean;
emit: boolean;
}): void;
getStickyHeaderPosition(): string;
protected getClosestTabIndex(index: number): number;
protected hasAvailableTabs(index: number): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<TabsetComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TabsetComponent, "hx-tabset", never, { "vertical": "vertical"; "justified": "justified"; "hasInfo": "hasInfo"; "type": "type"; "contentCustomClass": "contentCustomClass"; "stickyHeader": "stickyHeader"; "stickyHeaderOffset": "stickyHeaderOffset"; "tag": "tag"; "changeFn": "changeFn"; }, {}, ["_tabList"], ["*"]>;
}