pub struct DialogService {}
Expand description
A dialog service.
Implementations§
Source§impl DialogService
impl DialogService
Sourcepub fn prompt(message: &str) -> Option<String>
pub fn prompt(message: &str) -> Option<String>
Prompts the user to input a message. In most browsers this will open an alert box with an input field where the user can input a message.
This method will panic!
if there is an error in the process of trying to carry out this
operation.
Note that this function is blocking; no other code can be run on the thread while the user inputs their message which means that the page will appear to have ‘frozen’ while the user types in their message.
This function will return None
if the user cancels the operation (normally a ‘cancel’ button will be displayed to the user, clicking which cancels the operation).
Trait Implementations§
Source§impl Debug for DialogService
impl Debug for DialogService
Source§impl Default for DialogService
impl Default for DialogService
Source§fn default() -> DialogService
fn default() -> DialogService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DialogService
impl RefUnwindSafe for DialogService
impl Send for DialogService
impl Sync for DialogService
impl Unpin for DialogService
impl UnwindSafe for DialogService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self
to an optional value of a Properties
struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.