[−][src]Struct yew::services::DialogService
A dialog service.
Implementations
impl DialogService
[src]
pub fn alert(message: &str)
[src]
Calls alert function.
pub fn confirm(message: &str) -> bool
[src]
Calls confirm function.
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 Default for DialogService
[src]
fn default() -> DialogService
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,