67 lines
2.8 KiB
TypeScript
67 lines
2.8 KiB
TypeScript
import { AfterContentInit, EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
import { Router } from '@angular/router';
|
|
import { MenuItem, PrimeTemplate } from 'primeng/api';
|
|
import { BreadcrumbItemClickEvent } from './breadcrumb.interface';
|
|
import * as i0 from "@angular/core";
|
|
import * as i1 from "@angular/common";
|
|
import * as i2 from "@angular/router";
|
|
import * as i3 from "primeng/tooltip";
|
|
import * as i4 from "primeng/icons/chevronright";
|
|
import * as i5 from "primeng/icons/home";
|
|
import * as i6 from "primeng/api";
|
|
/**
|
|
* Breadcrumb provides contextual information about page hierarchy.
|
|
* @group Components
|
|
*/
|
|
export declare class Breadcrumb 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>;
|
|
templates: QueryList<PrimeTemplate> | undefined;
|
|
separatorTemplate: TemplateRef<any> | undefined;
|
|
itemTemplate: TemplateRef<any> | undefined;
|
|
constructor(router: Router);
|
|
onClick(event: MouseEvent, item: MenuItem): void;
|
|
onHomeClick(event: MouseEvent | any): void;
|
|
ngAfterContentInit(): void;
|
|
isCurrentUrl(item: any): string;
|
|
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"; }, ["templates"], never, false, never>;
|
|
}
|
|
export declare class BreadcrumbModule {
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbModule, never>;
|
|
static ɵmod: i0.ɵɵNgModuleDeclaration<BreadcrumbModule, [typeof Breadcrumb], [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.TooltipModule, typeof i4.ChevronRightIcon, typeof i5.HomeIcon, typeof i6.SharedModule], [typeof Breadcrumb, typeof i2.RouterModule, typeof i3.TooltipModule, typeof i6.SharedModule]>;
|
|
static ɵinj: i0.ɵɵInjectorDeclaration<BreadcrumbModule>;
|
|
}
|