showCard Method

Show a Card containing content, a title and a toolbar at a particular location.

showCard(_content: HTMLElement, _title: string | PropertyRecord, _toolbarProps: AbstractToolbarProps, _location: XAndY, _offset: XAndY, _onItemExecuted: OnItemExecutedFunc, _onCancel: OnCancelFunc, _relativePosition?: RelativePosition, _anchorElement?: HTMLElement): boolean

@returns true if the Card was displayed, false if the Card could not be displayed.

Parameter Type Description
_content HTMLElement The HTMLElement of the content to display
_title string | PropertyRecord Title to display at the top of the card.
_toolbarProps AbstractToolbarProps Properties of the Toolbar to display.
_location XAndY Location of the Card, relative to the origin of anchorElement or the window.
_offset XAndY Offset of the Card from the location.
_onItemExecuted OnItemExecutedFunc Function invoked after a Toolbar item is executed
_onCancel OnCancelFunc Function invoked when the Escape key is pressed or a click occurs outside the Card
_relativePosition RelativePosition Position relative to the given location. Defaults to TopRight.
_anchorElement HTMLElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.

Returns - boolean

true if the Card was displayed, false if the Card could not be displayed.

Defined in

Last Updated: 05 February, 2026