primevue-mirror/components/breadcrumb/Breadcrumb.d.ts

66 lines
1.5 KiB
TypeScript
Raw Normal View History

2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { MenuItem } from '../menuitem';
2022-12-08 11:04:25 +00:00
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2022-09-06 12:03:37 +00:00
export interface BreadcrumbProps {
/**
* An array of menuitems.
*/
model?: MenuItem[];
/**
* Configuration for the home icon.
*/
home?: MenuItem;
/**
* Whether to apply 'router-link-active-exact' class if route exactly matches the item path.
* Default value is true.
*/
exact?: boolean;
2022-12-08 11:04:25 +00:00
/**
* Defines a string value that labels an interactive element.
*/
'aria-label'?: string | undefined;
/**
* Identifier of the underlying menu element.
*/
'aria-labelledby'?: string | undefined;
2022-09-06 12:03:37 +00:00
}
export interface BreadcrumbSlots {
/**
* Custom item template.
* @param {Object} scope - item slot's params.
*/
item: (scope: {
/**
* Menuitem instance
*/
item: MenuItem;
}) => VNode[];
}
2022-09-14 11:26:01 +00:00
export declare type BreadcrumbEmits = {};
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
declare class Breadcrumb extends ClassComponent<BreadcrumbProps, BreadcrumbSlots, BreadcrumbEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
Breadcrumb: GlobalComponentConstructor<Breadcrumb>;
2022-09-06 12:03:37 +00:00
}
}
/**
*
* Breadcrumb provides contextual information about page hierarchy.
*
* Helper API:
*
2022-09-14 11:26:01 +00:00
* - [MenuItem](https://www.primefaces.org/primevue/menumodel)
2022-09-06 12:03:37 +00:00
*
* Demos:
*
2022-09-14 11:26:01 +00:00
* - [Breadcrumb](https://www.primefaces.org/primevue/breadcrumb)
2022-09-06 12:03:37 +00:00
*
*/
export default Breadcrumb;