showHTMLElement Method

Show an HTML element at a particular location.

showHTMLElement(displayElement: HTMLElement, location: XAndY, offset: XAndY, onCancel: OnCancelFunc, relativePosition?: RelativePosition, htmlElement?: HTMLElement): boolean

Parameter Type Description
displayElement HTMLElement The HTMLElement to display
location XAndY Location of the display element, relative to the origin of htmlElement or the window
offset XAndY Offset of the display element from the location
onCancel OnCancelFunc Function invoked when the Escape key is pressed or a click occurs outside the display element
relativePosition RelativePosition Position relative to the given location. Defaults to TopRight.
htmlElement HTMLElement  

Returns - boolean

true if the display element was displayed, false if the display element could not be displayed.

Defined in

Last Updated: 13 June, 2024