Function gloo_dialogs::prompt
source · pub fn prompt(message: &str, default: Option<&str>) -> Option<String>
Expand description
Calls the prompt
function.
A default value can be supplied which will be returned if the user doesn’t input anything.
This function will return None
if the value of default
is None
and the user cancels
the operation.