showCalculator Method

Show a calculator at a particular location.

showCalculator(_initialValue: number, _resultIcon: string, _location: XAndY, _onCommit: OnNumberCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean

Parameter Type Description
_initialValue number Value initially displayed in the calculator.
_resultIcon string Icon displayed to the left of the value.
_location XAndY Location of the calculator, relative to the origin of htmlElement or the window.
_onCommit OnNumberCommitFunc Function called when the OK button or the Enter key is pressed.
_onCancel OnCancelFunc Function called when the Cancel button or the Escape key is pressed.
_htmlElement HTMLElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.

Returns - boolean

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

Defined in

Last Updated: 13 June, 2024