primeng
Version:
PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB
73 lines (72 loc) • 2.91 kB
TypeScript
import { AfterContentInit, EventEmitter, QueryList, TemplateRef } from '@angular/core';
import { Router } from '@angular/router';
import { MenuItem, PrimeTemplate } from 'primeng/api';
import { BaseComponent } from 'primeng/basecomponent';
import { BreadcrumbItemClickEvent } from './breadcrumb.interface';
import { BreadCrumbStyle } from './style/breadcrumbstyle';
import * as i0 from "@angular/core";
import * as i1 from "primeng/api";
/**
* Breadcrumb provides contextual information about page hierarchy.
* @group Components
*/
export declare class Breadcrumb extends BaseComponent implements AfterContentInit {
private router;
/**
* An array of menuitems.
* @group Props
*/
model: MenuItem[] | undefined;
/**
* Inline style of the component.
* @group Props
*/
style: {
[klass: string]: any;
} | null | undefined;
/**
* Style class of the component.
* @group Props
*/
styleClass: string | undefined;
/**
* MenuItem configuration for the home icon.
* @group Props
*/
home: MenuItem | undefined;
/**
* Defines a string that labels the home icon for accessibility.
* @group Props
*/
homeAriaLabel: string | undefined;
/**
* Fired when an item is selected.
* @param {BreadcrumbItemClickEvent} event - custom click event.
* @group Emits
*/
onItemClick: EventEmitter<BreadcrumbItemClickEvent>;
_componentStyle: BreadCrumbStyle;
constructor(router: Router);
onClick(event: MouseEvent, item: MenuItem): void;
/**
* Defines template option for item.
* @group Templates
*/
itemTemplate: TemplateRef<any> | undefined;
/**
* Defines template option for separator.
* @group Templates
*/
separatorTemplate: TemplateRef<any> | undefined;
templates: QueryList<PrimeTemplate> | undefined;
_separatorTemplate: TemplateRef<any> | undefined;
_itemTemplate: TemplateRef<any> | undefined;
ngAfterContentInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<Breadcrumb, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Breadcrumb, "p-breadcrumb", never, { "model": { "alias": "model"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "home": { "alias": "home"; "required": false; }; "homeAriaLabel": { "alias": "homeAriaLabel"; "required": false; }; }, { "onItemClick": "onItemClick"; }, ["itemTemplate", "separatorTemplate", "templates"], never, true, never>;
}
export declare class BreadcrumbModule {
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<BreadcrumbModule, never, [typeof Breadcrumb, typeof i1.SharedModule], [typeof Breadcrumb, typeof i1.SharedModule]>;
static ɵinj: i0.ɵɵInjectorDeclaration<BreadcrumbModule>;
}