@kushki/ng-suka
Version:
<p align="center"> <h1 align="center">Suka Components Angular</h1> <p align="center"> An Angular implementation of the Suka Design System </p> </p>
38 lines (37 loc) • 1.24 kB
TypeScript
import { EventEmitter, OnDestroy } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { Router } from '@angular/router';
export declare class NavigationItem implements OnDestroy {
protected domSanitizer: DomSanitizer;
protected router: Router;
private subscription;
/**
* Link for the item. NOTE: *do not* pass unsafe or untrusted values, this has the potential to open you up to XSS attacks
*/
href: string;
/**
* Toggles the active (current page) state for the link.
*/
active: boolean;
/**
* Array of commands to send to the router when the link is activated
* See: https://angular.io/api/router/Router#navigate
*/
route: any[];
/**
* Router options. Used in conjunction with `route`
* See: https://angular.io/api/router/Router#navigate
*/
routeExtras: any;
/**
* Emits the navigation status promise when the link is activated
*/
navigation: EventEmitter<Promise<boolean>>;
isSubMenu: boolean;
protected _href: string;
constructor(domSanitizer: DomSanitizer, router: Router);
navigate(event: any): void;
ngOnDestroy(): void;
private isActive;
private update;
}