UNPKG

@asi-ngtools/lib

Version:

This project is a little components library, simple to use, which will help you to simplify your project.

35 lines (34 loc) 1.2 kB
import { OnInit, ChangeDetectorRef, DoCheck, IterableDiffers, EventEmitter, ElementRef, AfterViewInit } from '@angular/core'; export declare class AsiBreadcrumbComponent<T> implements OnInit, DoCheck, AfterViewInit { private ref; private elRef; private differs; class: string; /** List of items to be displayed */ data: Array<T>; /** */ trackBy: string; /** Allow you to add the home button */ hideHome: boolean; asiBreadcrumbDropdownDots: ElementRef; private differ; private nbElementsMax; hideElements: boolean; elementsDropdownOpened: boolean; /** * Data displayed on dom, doesn't interfere with input data * Needed because we sometimes hide some elements in GUI * But we don't want to remove them from data array */ shadowData: Array<T>; hiddenElements: Array<T>; clicked: EventEmitter<Array<T>>; constructor(ref: ChangeDetectorRef, elRef: ElementRef, differs: IterableDiffers); private checkInput(); ngOnInit(): void; ngDoCheck(): void; ngAfterViewInit(): void; private updateShadow(newStack); getTrackedValue(element: any): any; clickOnElement(element: T): void; }