pub struct DualListSelectorPaneProps<T: DualListSelectorItemRenderer> {
pub class: Classes,
pub options: Vec<T>,
pub selected_options: Vec<usize>,
pub onoptionselect: Callback<OnOptionSelectArgsNoChosen>,
pub title: Option<AttrValue>,
pub status: Option<AttrValue>,
pub is_chosen: bool,
pub disabled: bool,
pub children: ChildrenWithProps<DualListSelectorList<T>>,
}
Expand description
Acts as the container for a list of options that are either available or chosen, depending on the pane type (available or chosen).
Fields§
§class: Classes
Additional classes applied to the dual list selector pane.
options: Vec<T>
Options to list in the pane.
selected_options: Vec<usize>
Options currently selected in the pane.
onoptionselect: Callback<OnOptionSelectArgsNoChosen>
Callback for when an option is selected. Optionally used only when options prop is provided.
title: Option<AttrValue>
Title of the pane.
status: Option<AttrValue>
Status to display above the pane.
is_chosen: bool
Flag indicating if this pane is the chosen pane.
disabled: bool
Flag indicating whether the component is disabled.
children: ChildrenWithProps<DualListSelectorList<T>>
A dual list selector list to be rendered in the pane.
Trait Implementations§
source§impl<T: Clone + DualListSelectorItemRenderer> Clone for DualListSelectorPaneProps<T>
impl<T: Clone + DualListSelectorItemRenderer> Clone for DualListSelectorPaneProps<T>
source§fn clone(&self) -> DualListSelectorPaneProps<T>
fn clone(&self) -> DualListSelectorPaneProps<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug + DualListSelectorItemRenderer> Debug for DualListSelectorPaneProps<T>
impl<T: Debug + DualListSelectorItemRenderer> Debug for DualListSelectorPaneProps<T>
source§impl<T: PartialEq + DualListSelectorItemRenderer> PartialEq for DualListSelectorPaneProps<T>
impl<T: PartialEq + DualListSelectorItemRenderer> PartialEq for DualListSelectorPaneProps<T>
source§fn eq(&self, other: &DualListSelectorPaneProps<T>) -> bool
fn eq(&self, other: &DualListSelectorPaneProps<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: DualListSelectorItemRenderer> Properties for DualListSelectorPaneProps<T>
impl<T: DualListSelectorItemRenderer> Properties for DualListSelectorPaneProps<T>
impl<T: DualListSelectorItemRenderer> StructuralPartialEq for DualListSelectorPaneProps<T>
Auto Trait Implementations§
impl<T> Freeze for DualListSelectorPaneProps<T>
impl<T> !RefUnwindSafe for DualListSelectorPaneProps<T>
impl<T> !Send for DualListSelectorPaneProps<T>
impl<T> !Sync for DualListSelectorPaneProps<T>
impl<T> Unpin for DualListSelectorPaneProps<T>where
T: Unpin,
impl<T> !UnwindSafe for DualListSelectorPaneProps<T>
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.