pub struct EuvFormProps {
pub submit_label: &'static str,
pub on_submit: Option<Rc<dyn Fn()>>,
}Expand description
Props for the euv_form component.
The component only owns the form shell: the fields themselves are passed in as children, so the caller decides which controls the form holds.
Fields§
§submit_label: &'static strThe label of the submit button.
An empty string renders the form without a submit button, which is the right choice for a form that submits itself.
on_submit: Option<Rc<dyn Fn()>>The callback invoked when the form is submitted.
Trait Implementations§
Source§impl Clone for EuvFormProps
impl Clone for EuvFormProps
Source§impl Debug for EuvFormProps
impl Debug for EuvFormProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvFormProps
impl !Send for EuvFormProps
impl !Sync for EuvFormProps
impl !UnwindSafe for EuvFormProps
impl Freeze for EuvFormProps
impl Unpin for EuvFormProps
impl UnsafeUnpin for EuvFormProps
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