pub struct TransferProps {
pub data: Vec<TransferItem>,
pub model_value: Vec<String>,
pub filterable: bool,
pub titles: Vec<String>,
pub filter_placeholder: String,
pub empty_text: String,
pub on_change: Option<EventHandler<Vec<String>>>,
pub on_left_check: Option<EventHandler<Vec<String>>>,
pub on_right_check: Option<EventHandler<Vec<String>>>,
pub class: Option<String>,
pub style: Option<String>,
}Expand description
Transfer props
Fields§
§data: Vec<TransferItem>All available data items
model_value: Vec<String>Keys currently in the right panel
filterable: boolWhether the transfer is filterable
titles: Vec<String>Panel titles [left_title, right_title]
filter_placeholder: StringFilter placeholder text
empty_text: StringEmpty state text
on_change: Option<EventHandler<Vec<String>>>Change handler - receives the right panel keys
on_left_check: Option<EventHandler<Vec<String>>>Left panel selection change handler
on_right_check: Option<EventHandler<Vec<String>>>Right panel selection change handler
class: Option<String>§style: Option<String>Implementations§
Source§impl TransferProps
impl TransferProps
Sourcepub fn builder() -> TransferPropsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> TransferPropsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building TransferProps.
On the builder, call .data(...)(optional), .model_value(...)(optional), .filterable(...)(optional), .titles(...)(optional), .filter_placeholder(...)(optional), .empty_text(...)(optional), .on_change(...)(optional), .on_left_check(...)(optional), .on_right_check(...)(optional), .class(...)(optional), .style(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of TransferProps.
Trait Implementations§
Source§impl Clone for TransferProps
impl Clone for TransferProps
Source§fn clone(&self) -> TransferProps
fn clone(&self) -> TransferProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for TransferProps
impl PartialEq for TransferProps
Source§fn eq(&self, other: &TransferProps) -> bool
fn eq(&self, other: &TransferProps) -> bool
self and other values to be equal, and is used by ==.