1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

[EC-937] Pre-merge breadcrumbs into master (#4420)

original implementation from ef20ee1882 (https://github.com/bitwarden/clients/pull/3762)
This commit is contained in:
Andreas Coroiu
2023-01-09 18:59:19 +01:00
committed by GitHub
parent 6b1a72851a
commit f4219bada9
8 changed files with 261 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { Component, EventEmitter, Input, Output, TemplateRef, ViewChild } from "@angular/core";
@Component({
selector: "bit-breadcrumb",
templateUrl: "./breadcrumb.component.html",
})
export class BreadcrumbComponent {
@Input()
icon?: string;
@Input()
route?: string | any[] = undefined;
@Input()
queryParams?: Record<string, string> = {};
@Output()
click = new EventEmitter();
@ViewChild(TemplateRef, { static: true }) content: TemplateRef<unknown>;
onClick(args: unknown) {
this.click.next(args);
}
}