primevue-mirror/components/lib/overlaypanel/OverlayPanel.d.ts

106 lines
2.8 KiB
TypeScript
Raw Normal View History

2023-03-01 10:19:01 +00:00
/**
*
* OverlayPanel is a container component positioned as connected to its target.
*
* [Live Demo](https://primevue.org/popover)
2023-03-01 10:19:01 +00:00
*
* @module overlaypanel
*
*/
import 'vue';
import * as Popover from '../popover';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2023-08-02 14:07:22 +00:00
2023-04-24 11:44:13 +00:00
/**
* Custom passthrough(pt) option method.
*/
export interface OverlayPanelPassThroughMethodOptions extends Popover.PopoverPassThroughMethodOptions {}
2023-04-24 11:44:13 +00:00
/**
* Custom passthrough(pt) options.
* @see {@link OverlayPanelProps.pt}
*/
export interface OverlayPanelPassThroughOptions extends Popover.PopoverPassThroughOptions {}
2023-04-24 11:44:13 +00:00
/**
* Custom passthrough attributes for each DOM elements
*/
export interface OverlayPanelPassThroughAttributes extends Popover.PopoverPassThroughAttributes {
2023-04-24 11:44:13 +00:00
[key: string]: any;
}
/**
* Defines current inline state in OverlayPanel component.
*/
export interface OverlayPanelState extends Popover.PopoverState {}
2023-04-24 11:44:13 +00:00
2023-03-01 10:19:01 +00:00
/**
* OverlayPanel breakpoint metadata.
*/
export interface OverlayPanelBreakpoints extends Popover.PopoverBreakpoints {}
2022-09-06 12:03:37 +00:00
2023-03-01 10:19:01 +00:00
/**
* Defines valid properties in OverlayPanel component.
*/
export interface OverlayPanelProps extends Popover.PopoverProps {}
2022-09-06 12:03:37 +00:00
2023-03-01 10:19:01 +00:00
/**
* Defines valid slots in OverlayPanel component.
*/
export interface OverlayPanelSlots extends Popover.PopoverSlots {}
2022-09-06 12:03:37 +00:00
/**
* Defines valid emits in OverlayPanel component.
*/
export interface OverlayPanelEmits extends Popover.PopoverEmits {}
2023-03-01 10:19:01 +00:00
/**
* @deprecated Deprecated since v4. Use Popover component instead.
*
2023-03-01 10:19:01 +00:00
* **PrimeVue - OverlayPanel**
*
* _OverlayPanel, also known as Popover, is a container component that can overlay other components on page._
*
* [Live Demo](https://www.primevue.org/popover/)
2023-03-01 10:19:01 +00:00
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
*
* @group Component
*/
2023-03-01 14:48:23 +00:00
declare class OverlayPanel extends ClassComponent<OverlayPanelProps, OverlayPanelSlots, OverlayPanelEmits> {
/**
* Aligns overlay panel based on the current position of the container.
*/
alignOverlay(): void;
2022-09-06 12:03:37 +00:00
/**
* Toggles the visibility of the overlay.
* @param {Event} event - Browser event.
2022-12-08 11:04:25 +00:00
* @param {*} [target] - Optional target if event.currentTarget should not be used.
2022-09-06 12:03:37 +00:00
*
* @memberof OverlayPanel
*/
2023-03-01 10:19:01 +00:00
toggle(event: Event, target?: any): void;
2022-09-06 12:03:37 +00:00
/**
* Shows the overlay.
* @param {Event} event - Browser event.
* @param {*} [target] - Optional target if event.currentTarget should not be used.
*
* @memberof OverlayPanel
*/
2023-03-01 10:19:01 +00:00
show(event: Event, target?: any): void;
2022-09-06 12:03:37 +00:00
/**
* Hides the overlay.
*
* @memberof OverlayPanel
*/
2023-03-01 10:19:01 +00:00
hide(): void;
2022-09-06 12:03:37 +00:00
}
declare module 'vue' {
export interface GlobalComponents {
2022-09-14 11:26:01 +00:00
OverlayPanel: GlobalComponentConstructor<OverlayPanel>;
2022-09-06 12:03:37 +00:00
}
}
export default OverlayPanel;