UNPKG

coersystem

Version:

Library for Angular projects

22 lines (21 loc) 759 B
import { IAppSource } from "coersystem/interfaces"; /** Controls the breadcrumbs in sessionStorage */ export declare class Breadcrumbs { private static readonly storage; /** Add a breadcrumb */ static Add(page: string, path: string): void; /** Get the breadcrumbs */ static Get(): IAppSource[]; /** Get the first breadcrumb */ static GetFirst(): IAppSource | null; /** Get the last breadcrumb */ static GetLast(): IAppSource | null; /** */ private static Save; /** Removes one breadcrumb by route */ static RemoveByPath(path: string): void; /** Update the last breadcrumb */ static UpdateLast(page: string, path: string): void; /** Remove the last breadcrumb */ static RemoveLast(): void; }