2022-09-14 11:26:01 +00:00
|
|
|
import { AnchorHTMLAttributes, HTMLAttributes, VNode } from 'vue';
|
2022-09-06 12:03:37 +00:00
|
|
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
|
|
|
|
|
|
export interface AccordionTabProps {
|
|
|
|
/**
|
|
|
|
* Orientation of tab headers.
|
|
|
|
*/
|
|
|
|
header?: string | undefined;
|
2022-09-14 11:26:01 +00:00
|
|
|
/**
|
|
|
|
* Inline style of the tab header.
|
|
|
|
*/
|
|
|
|
headerStyle?: any;
|
|
|
|
/**
|
|
|
|
* Style class of the tab header.
|
|
|
|
*/
|
|
|
|
headerClass?: any;
|
|
|
|
/**
|
|
|
|
* Uses to pass all properties of the HTMLDivElement to the tab header.
|
|
|
|
*/
|
|
|
|
headerProps?: HTMLAttributes | undefined;
|
|
|
|
/**
|
|
|
|
* Uses to pass all properties of the HTMLAnchorElement to the focusable anchor element inside the tab header.
|
|
|
|
*/
|
|
|
|
headerActionProps?: AnchorHTMLAttributes | undefined;
|
|
|
|
/**
|
|
|
|
* Inline style of the tab content.
|
|
|
|
*/
|
|
|
|
contentStyle?: any;
|
|
|
|
/**
|
|
|
|
* Style class of the tab content.
|
|
|
|
*/
|
|
|
|
contentClass?: any;
|
|
|
|
/**
|
|
|
|
* Uses to pass all properties of the HTMLDivElement to the tab content.
|
|
|
|
*/
|
|
|
|
contentProps?: HTMLAttributes | undefined;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Whether the tab is disabled.
|
|
|
|
*/
|
|
|
|
disabled?: boolean | undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AccordionTabSlots {
|
|
|
|
/**
|
|
|
|
* Default slot for content.
|
|
|
|
*/
|
|
|
|
default: () => VNode[];
|
|
|
|
/**
|
|
|
|
* Custom content for the title section of a panel is defined using the header template.
|
|
|
|
*/
|
|
|
|
header: () => VNode[];
|
|
|
|
}
|
|
|
|
|
2022-09-14 11:26:01 +00:00
|
|
|
export declare type AccordionTabEmits = {};
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2022-09-14 11:26:01 +00:00
|
|
|
declare class AccordionTab extends ClassComponent<AccordionTabProps, AccordionTabSlots, AccordionTabEmits> {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
|
|
|
declare module '@vue/runtime-core' {
|
|
|
|
interface GlobalComponents {
|
2022-09-14 11:26:01 +00:00
|
|
|
AccordionTab: GlobalComponentConstructor<AccordionTab>;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* AccordionTab is a helper component for Accordion.
|
|
|
|
*
|
|
|
|
* Demos:
|
|
|
|
*
|
2022-09-14 11:26:01 +00:00
|
|
|
* - [Accordion](https://www.primefaces.org/primevue/accordion)
|
2022-09-06 12:03:37 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
export default AccordionTab;
|