axentix
Version:
Axentix is a framework mixing fully customizable components & utility-first classes, leaving the design choice to the developer.
27 lines (26 loc) • 854 B
TypeScript
import { AxentixComponent, Component } from '../../utils/component';
import { ICaroulixOptions } from '../caroulix/caroulix';
interface ITabOptions {
animationDuration?: number;
animationType?: 'none' | 'slide';
disableActiveBar?: boolean;
caroulix?: ICaroulixOptions;
}
export declare class Tab extends AxentixComponent implements Component {
#private;
static getDefaultOptions: () => ITabOptions;
options: ITabOptions;
constructor(element: string, options?: ITabOptions);
setup(): void;
setupListeners(): void;
removeListeners(): void;
/** Select tab */
select(itemId: string): void;
/** Detect active element & update component */
updateActiveElement(): void;
/** Go to previous tab */
prev(step?: number): void;
/** Go to next tab */
next(step?: number): void;
}
export {};