Select to view content in your preferred language

how can coordinates widget open a modal dialog

572
0
02-26-2024 04:00 AM
Labels (2)
MichaelLev
Frequent Contributor

In coordinates widget exb\1.13\client\dist\widgets\arcgis\coordinates\src\runtime\widget.tsx,
after you click on the leftside "+", each map click will display the point's coordinates.
The original code  is in "if (canShowClient)" in async function onMapClick (line 392).

I need to present a modal dialog (e.g. with something in it, e.g. radio buttons) just before displaying the coordinates, i.e. just after "if (canShowClient)".

From Jeffrey Thompson2 I learned that "esri way" is to import { Modal, ModalBody, ModalHeader } from 'jimu-ui',
as done in a few other widgets, but I don't yet know how to actually code it in coordinates widget.

Help will be greatly appreciated.

(this is a much more "focused" wording of my previous general question)

0 Kudos
0 Replies