pub struct EuvTransferProps {
pub source: Vec<EuvTransferItem>,
pub target: Vec<EuvTransferItem>,
pub selected: Signal<Vec<String>>,
pub source_title: &'static str,
pub target_title: &'static str,
pub on_move_to_target: Option<Rc<dyn Fn(&'static str)>>,
pub on_move_to_source: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_transfer component.
The component is presentational: it owns neither of the two lists and
only reports the moves the reader asks for. The marked rows live in a
caller-owned Signal<Vec<String>>, so the transfer takes part in
two-way binding with the rest of the page.
Fields§
§source: Vec<EuvTransferItem>The rows of the source list.
target: Vec<EuvTransferItem>The rows of the target list.
selected: Signal<Vec<String>>The rows currently marked in either list.
source_title: &'static strThe label of the source list’s header.
target_title: &'static strThe label of the target list’s header.
on_move_to_target: Option<Rc<dyn Fn(&'static str)>>The callback fired when a row moves from the source to the target.
on_move_to_source: Option<Rc<dyn Fn(&'static str)>>The callback fired when a row moves from the target to the source.
Trait Implementations§
Source§impl Clone for EuvTransferProps
impl Clone for EuvTransferProps
Source§impl Debug for EuvTransferProps
impl Debug for EuvTransferProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvTransferProps
impl !Send for EuvTransferProps
impl !Sync for EuvTransferProps
impl !UnwindSafe for EuvTransferProps
impl Freeze for EuvTransferProps
impl Unpin for EuvTransferProps
impl UnsafeUnpin for EuvTransferProps
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