pub struct InputWithButton {
pub value: Value<String>,
pub params: InputWithButtonParams,
}Expand description
Input connected to provided Value<String>.
use vertigo::{dom, Value};
use vertigo_forms::InputWithButton;
let my_value = Value::<String>::default();
dom! {
<InputWithButton value={my_value} params={} />
};use vertigo::{css, dom, Value};
use vertigo_forms::{InputWithButton, InputWithButtonParams};
let my_value = Value::new("Initial text".to_string());
dom! {
<InputWithButton
value={my_value}
params={InputWithButtonParams {
button_label: "Load".to_string(),
..Default::default()
}}
input:css={css!("width: 300px;")}
/>
};Fields§
§value: Value<String>§params: InputWithButtonParamsImplementations§
Source§impl InputWithButton
impl InputWithButton
pub fn into_component(self) -> __InputWithButtonComponent
Auto Trait Implementations§
impl Freeze for InputWithButton
impl !RefUnwindSafe for InputWithButton
impl !Send for InputWithButton
impl !Sync for InputWithButton
impl Unpin for InputWithButton
impl !UnwindSafe for InputWithButton
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more