@doku-dev/doku-fragment
Version:
A new Angular UI library that moving away from Bootstrap and built from scratch.
29 lines (28 loc) • 1.29 kB
TypeScript
import { NgClass } from '@angular/common';
import { AfterViewInit, ElementRef, OnChanges, QueryList, SimpleChanges } from '@angular/core';
import { DokuTimelineDateTime } from './timeline-date-time.component';
import * as i0 from "@angular/core";
export declare class DokuTimeline implements AfterViewInit, OnChanges {
dateTimeRef?: ElementRef<DokuTimelineDateTime>;
timelineItems?: QueryList<ElementRef>;
/**
* The index of the last active timeline item.
*/
activeIndex?: number;
/**
* The orientation of the timeline.
* @default `horizontal`
*/
orientation: 'horizontal' | 'vertical';
protected get classes(): NgClass['ngClass'];
protected get hasDateTime(): boolean;
ngAfterViewInit(): void;
ngOnChanges({ activeIndex }: SimpleChanges): void;
/**
* Toggle each timeline item color to active from the first to the last active item
* that represented by the active index that represent.
*/
private _toggleActiveItemColor;
static ɵfac: i0.ɵɵFactoryDeclaration<DokuTimeline, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DokuTimeline, "doku-timeline", ["dokuTimeline"], { "activeIndex": "activeIndex"; "orientation": "orientation"; }, {}, ["dateTimeRef", "timelineItems"], ["*"], true>;
}