@progress/kendo-angular-tooltip
Version:
Kendo UI Tooltip for Angular - A highly customizable and easily themeable tooltip from the creators developers trust for professional Angular components.
90 lines (89 loc) • 2.69 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { PreventableEvent } from "@progress/kendo-angular-common";
/**
* Arguments for the `show` event. The `show` event fires when a popover is about
* to be opened. If you cancel the event, the opening is prevented.
*/
export class PopoverShowEvent extends PreventableEvent {
/**
* The host element related to the popover.
*/
anchor;
/**
* @hidden
* Constructs the event arguments for the `show` event.
* @param anchor - The host element related to the popover.
*/
constructor(anchor) {
super();
this.anchor = anchor;
}
}
/**
* Arguments for the `hide` event. The `hide` event fires when a popover is about
* to be closed. If you cancel the event, the popover stays open.
*/
export class PopoverHideEvent extends PreventableEvent {
/**
* The host element related to the popover.
*/
anchor;
/**
* The popover element.
*/
popover;
/**
* @hidden
* Constructs the event arguments for the `hide` event.
* @param anchor - The host element related to the popover.
* @param popover - The popover element.
*/
constructor(anchor, popover) {
super();
this.anchor = anchor;
this.popover = popover;
}
}
/**
* Arguments for the `shown` event. The `shown` event fires after the popover has opened and its opening animation has finished.
*/
export class PopoverShownEvent {
/**
* The host element related to the popover.
*/
anchor;
/**
* The popover element.
*/
popover;
/**
* @hidden
* Constructs the event arguments for the `shown` event.
* @param anchor - The host element related to the popover.
* @param popover - The popover element.
*/
constructor(anchor, popover) {
this.anchor = anchor;
this.popover = popover;
}
}
/**
* Arguments for the `hidden` event. The `hidden` event fires after the popover has closed and its closing animation has finished.
*/
export class PopoverHiddenEvent {
/**
* The host element related to the popover.
*/
anchor;
/**
* @hidden
* Constructs the event arguments for the `hidden` event.
* @param anchor - The host element related to the popover.
*/
constructor(anchor) {
this.anchor = anchor;
}
}