mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Refactor #4190 - For Breadcrumb
This commit is contained in:
parent
7f67f640e5
commit
62a83920b4
2 changed files with 33 additions and 8 deletions
15
components/lib/breadcrumb/Breadcrumb.d.ts
vendored
15
components/lib/breadcrumb/Breadcrumb.d.ts
vendored
|
@ -20,6 +20,7 @@ export declare type BreadcrumbPassThroughOptionType = BreadcrumbPassThroughAttri
|
|||
export interface BreadcrumbPassThroughMethodOptions {
|
||||
instance: any;
|
||||
props: BreadcrumbProps;
|
||||
context: BreadcrumbContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -73,6 +74,20 @@ export interface BreadcrumbPassThroughAttributes {
|
|||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in Breadcrumb component.
|
||||
*/
|
||||
export interface BreadcrumbContext {
|
||||
/**
|
||||
* Current menuitem
|
||||
*/
|
||||
item: any;
|
||||
/**
|
||||
* Index of the menuitem
|
||||
*/
|
||||
index: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Breadcrumb component.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue