primevue-mirror/components/lib/splitterpanel/SplitterPanel.d.ts

92 lines
2.2 KiB
TypeScript
Raw Normal View History

2023-02-28 21:23:26 +00:00
/**
*
* SplitterPanel is a helper component for Splitter component.
*
* [Live Demo](https://www.primevue.org/splitter/)
*
* @module splitterpanel
*
*/
2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2023-03-27 07:13:31 +00:00
export declare type SplitterPanelPassThroughOptionType = SplitterPanelPassThroughAttributes | ((options: SplitterPanelPassThroughMethodOptions) => SplitterPanelPassThroughAttributes) | null | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface SplitterPanelPassThroughMethodOptions {
props: SplitterPanelProps;
}
/**
* Custom passthrough(pt) options.
* @see {@link PanelProps.pt}
*/
export interface SplitterPanelPassThroughOptions {
/**
* Uses to pass attributes to the root's DOM element.
*/
root?: SplitterPanelPassThroughOptionType;
}
/**
* Custom passthrough attributes for each DOM elements
*/
export interface SplitterPanelPassThroughAttributes {
[key: string]: any;
}
2023-02-28 21:23:26 +00:00
/**
* Defines valid properties in SplitterPanel component.
*/
2022-09-06 12:03:37 +00:00
export interface SplitterPanelProps {
/**
* Size of the element relative to 100%.
*/
size?: number | undefined;
/**
* Minimum size of the element relative to 100%.
*/
minSize?: number | undefined;
2023-03-27 07:13:31 +00:00
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {SplitterPanelPassThroughOptions}
*/
pt?: SplitterPanelPassThroughOptions;
2022-09-06 12:03:37 +00:00
}
2023-02-28 21:23:26 +00:00
/**
* Defines valid slots in SplitterPanel slots.
*/
2022-09-06 12:03:37 +00:00
export interface SplitterPanelSlots {
/**
* Custom content template.
*/
default: () => VNode[];
}
2023-02-28 21:23:26 +00:00
export interface SplitterPanelEmits {}
2022-09-06 12:03:37 +00:00
2023-02-28 21:23:26 +00:00
/**
* **PrimeVue - SplitterPanel**
*
* _SplitterPanel is a helper component for Splitter component._
*
* [Live Demo](https://www.primevue.org/splitterpanel/)
* --- ---
2023-03-03 10:55:20 +00:00
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
2023-02-28 21:23:26 +00:00
*
* @group Component
*
*/
2023-03-01 12:30:54 +00:00
declare class SplitterPanel extends ClassComponent<SplitterPanelProps, SplitterPanelSlots, SplitterPanelEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
SplitterPanel: GlobalComponentConstructor<SplitterPanel>;
2022-09-06 12:03:37 +00:00
}
}
export default SplitterPanel;