src/breadcrumb/breadcrumb-item.interface.ts
A structure that represents a breadcrumb item.
Properties |
|
| ariaCurrent |
ariaCurrent:
|
Type : string
|
| Optional |
|
aria-current for the breadcrumb item. |
| content |
content:
|
Type : string
|
|
Content to be displayed in the breadcrumb item. |
| current |
current:
|
Type : boolean
|
| Optional |
|
Sets the current class for the breadcrumb item. |
| href |
href:
|
Type : string
|
| Optional |
|
Href for the breadcrumb item. |
| route |
route:
|
Type : any[]
|
| Optional |
|
Array of commands to send to the router when the link is activated See: https://angular.io/api/router/Router#navigate |
| routeExtras |
routeExtras:
|
Type : any
|
| Optional |
|
Router options. Used in conjunction with |
| template |
template:
|
Type : TemplateRef<any>
|
| Optional |
|
Optional |
import { TemplateRef } from "@angular/core";
/**
* A structure that represents a breadcrumb item.
*/
export interface BreadcrumbItem {
/**
* Content to be displayed in the breadcrumb item.
*/
content: string;
/**
* Href for the breadcrumb item.
*/
href?: string;
/**
* 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;
/**
* Optional `TemplateRef` for the breadcrumb item. Receives the content as an `$implicit` template variable
*/
template?: TemplateRef<any>;
/**
* aria-current for the breadcrumb item.
*/
ariaCurrent?: string;
/**
* Sets the current class for the breadcrumb item.
*/
current?: boolean;
}