UNPKG

@ux-aspects/ux-aspects

Version:

Open source user interface framework for building modern, responsive, mobile big data applications

37 lines (36 loc) 1.87 kB
import { AfterContentInit, AfterViewInit, OnDestroy } from '@angular/core'; import * as i0 from "@angular/core"; export declare class NavigationItemComponent implements AfterViewInit, AfterContentInit, OnDestroy { private readonly _elementRef; private readonly _renderer; private readonly _router; private readonly _parent; /** The text to display in the navigation menu item. */ header: string; /** The name of an icon from the UX Aspects icon set, to be displayed to the left of the title. */ icon: string; /** Whether the navigation item is expanded, displaying the items from the `children` array. */ expanded: boolean; /** The link that will be navigated to if this item is selected */ link: string; /** Get the active state of this item from the router */ get active(): boolean; /** Indicate the depth of the item */ _level: number; /** Indicate whether the indentation should include the arrow */ _indentWithoutArrow: boolean; private readonly _children; get children(): NavigationItemComponent[]; /** Automatically unsubscribe when the component is destroyed */ private readonly _onDestroy; constructor(); ngAfterViewInit(): void; ngAfterContentInit(): void; ngOnDestroy(): void; /** Check if this item or any children are active */ private hasActiveLink; private getLevelClass; private setIndentWithoutArrow; static ɵfac: i0.ɵɵFactoryDeclaration<NavigationItemComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NavigationItemComponent, "[ux-navigation-item]", never, { "header": { "alias": "header"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "link": { "alias": "link"; "required": false; }; }, {}, ["_children"], ["*"], false, never>; }