Struct yew::services::DialogService [−][src]
pub struct DialogService {}
Expand description
A dialog service.
Implementations
impl DialogService
[src]
impl DialogService
[src]pub fn prompt(message: &str, default: Option<&str>) -> Option<String>
[src]
pub fn prompt(message: &str, default: Option<&str>) -> Option<String>
[src]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. A default value can be supplied which will be returned if the user doesn’t input anything.
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 value of default
is None
and the user cancels the operation. (normally a ‘cancel’ button will be displayed to the user, clicking which cancels the operation).
Trait Implementations
impl Debug for DialogService
[src]
impl Debug for DialogService
[src]impl Default for DialogService
[src]
impl Default for DialogService
[src]fn default() -> DialogService
[src]
fn default() -> DialogService
[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DialogService
impl Send for DialogService
impl Sync for DialogService
impl Unpin for DialogService
impl UnwindSafe for DialogService
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: Any,
[src]
T: Any,