API Reference > ui-abstract > Admin > UiAdmin > showCalculator 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 ui/abstract/src/ui-abstract/UiAdmin.ts Line 84 Last Updated: 13 June, 2024