39 lines
753 B
TypeScript
39 lines
753 B
TypeScript
|
import { TemplateRef } from '@angular/core';
|
||
|
import { MenuItem } from 'primeng/api';
|
||
|
/**
|
||
|
* Defines valid templates in Breadcumb.
|
||
|
* @group Templates
|
||
|
*/
|
||
|
export interface BreadcumbTemplates {
|
||
|
/**
|
||
|
* Custom template of item.
|
||
|
*/
|
||
|
item(context: {
|
||
|
/**
|
||
|
* Data of the item.
|
||
|
*/
|
||
|
$implicit: MenuItem;
|
||
|
}): TemplateRef<{
|
||
|
$implicit: MenuItem;
|
||
|
}>;
|
||
|
/**
|
||
|
* Custom template of separator.
|
||
|
*/
|
||
|
separator(): TemplateRef<any>;
|
||
|
}
|
||
|
/**
|
||
|
* Custom select event.
|
||
|
* @see {@link Breadcrumb.onItemClick}
|
||
|
* @group Events
|
||
|
*/
|
||
|
export interface BreadcrumbItemClickEvent {
|
||
|
/**
|
||
|
* Browser event.
|
||
|
*/
|
||
|
originalEvent: Event;
|
||
|
/**
|
||
|
* Selected menu item .
|
||
|
*/
|
||
|
item: MenuItem;
|
||
|
}
|