import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, Renderer2 } from '@angular/core'; import { Platform } from 'ionic-angular'; import { SuperTabsConfig } from './parentcustomsupertabs'; export declare class ParentCustomSuperTabsContainer implements AfterViewInit, OnDestroy { private el; private rnd; private plt; private ngZone; /** * Component configuration */ config: SuperTabsConfig; /** * Number of tabs */ tabsCount: number; /** * Selected tab index */ selectedTabIndex: number; /** * Notifies when a tab is selected */ tabSelect: EventEmitter<{ index: number; changed: boolean; }>; /** * Notifies when the container is being dragged */ onDrag: EventEmitter; /** * Container position */ containerPosition: number; /** * The container wrapping all the tabs */ container: ElementRef; /** * Single tab width */ tabWidth: number; /** * Container width (sum of tab widths) */ containerWidth: number; /** * Minimum position on x-axis that the container can be at */ private minPosX; /** * Maximum position on x-axis that the container can be at */ private maxPosX; /** * Pan gesture controller */ private gesture; /** * Boolean indicating whether swiping is globally enabled */ private globalSwipeEnabled; /** * Set of booleans to indicate whether swiping is enabled on each tab */ private swipeEnabledPerTab; constructor(el: ElementRef, rnd: Renderer2, plt: Platform, ngZone: NgZone); ngAfterViewInit(): void; ngOnDestroy(): void; /** * Enable or disable swiping globally */ enableTabsSwipe(enable: boolean): void; /** * Enable or disable swiping when a tab is selected */ enableTabSwipe(tabIndex: number, enable: boolean): void; refreshDimensions(): void; getNativeElement(): HTMLElement; private init(); /** * Set the selected tab. * Emits a tabSelect event with the tab index, and a boolean indicating whether the tab changed or not. */ private setSelectedTab(index); /** * Calculate the container's width. * It's usually the number of tabs x tab width. */ private calculateContainerWidth(); /** * Set the container's width via CSS property */ private setContainerWidth(); /** * Slide to a specific tab */ slideTo(index: number, animate?: boolean): void; /** * Moves the container to a specified position */ private moveContainer(animate?, positionX?); /** * Refresh the min and max positions that the container can be at. * The minimum position is always 0, the maximum position is the number of tabs x tab width. */ private refreshMinMax(); }