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:
25
libs/components/src/breadcrumbs/breadcrumb.component.ts
Normal file
25
libs/components/src/breadcrumbs/breadcrumb.component.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user