message parameters
JMap.Application.Message.confirmMessage({
message: "Are you sure to do a given action ?",
onSuccess: () => console.log(`The user is sure`),
onCancel: () => console.info("The user is not sure")
})
JMap.Application.Message.confirmMessage({
message: "City name :",
isInputMessage: true,
onSuccess: cityName => console.log(`City name input = ${cityName}`),
onCancel: () => console.info("Input has been canceled")
})
JMap.Application.Message.confirmMessage
Prompts a confirmation dialog message on the screen.
The onSuccess callback is called when the user clicked "confirm" button.
If it's an input confirm message, the onSuccess will get the input, else an empty string.
The optional onCancel callback is called when the cancel button is clicked.