pub struct MultiSelectProps<T>{Show 22 fields
pub items: Vec<T>,
pub on_change: Handler<'static, Vec<T>>,
pub on_select: Handler<'static, Vec<T>>,
pub state: Option<State<ListState>>,
pub selected: Option<State<HashSet<usize>>>,
pub top_title: Option<Line<'static>>,
pub bottom_title: Option<Line<'static>>,
pub active: bool,
pub default_index: Option<usize>,
pub empty_message: TextParagraph<'static>,
pub highlight_symbol: Option<&'static str>,
pub style: Option<Style>,
pub border_style: Option<Style>,
pub highlight_style: Option<Style>,
pub selected_item_style: Option<Style>,
pub empty_style: Option<Style>,
pub empty_width: Constraint,
pub empty_height: Constraint,
pub margin: Margin,
pub offset: Offset,
pub width: Constraint,
pub height: Constraint,
}Fields§
§items: Vec<T>§on_change: Handler<'static, Vec<T>>§on_select: Handler<'static, Vec<T>>§state: Option<State<ListState>>§selected: Option<State<HashSet<usize>>>§top_title: Option<Line<'static>>§bottom_title: Option<Line<'static>>§active: bool§default_index: Option<usize>§empty_message: TextParagraph<'static>§highlight_symbol: Option<&'static str>§style: Option<Style>§border_style: Option<Style>§highlight_style: Option<Style>§selected_item_style: Option<Style>§empty_style: Option<Style>§empty_width: Constraint§empty_height: Constraint§margin: Margin§offset: Offset§width: Constraint§height: ConstraintImplementations§
Source§impl<T> MultiSelectProps<T>
impl<T> MultiSelectProps<T>
Sourcepub fn layout_style(&self) -> LayoutStyle
pub fn layout_style(&self) -> LayoutStyle
Returns the layout style based on the layout-related fields of this struct.
Trait Implementations§
Source§impl<T> Default for MultiSelectProps<T>
impl<T> Default for MultiSelectProps<T>
impl<T> Props for MultiSelectProps<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for MultiSelectProps<T>
impl<T> !Send for MultiSelectProps<T>
impl<T> !Sync for MultiSelectProps<T>
impl<T> !UnwindSafe for MultiSelectProps<T>
impl<T> Freeze for MultiSelectProps<T>
impl<T> Unpin for MultiSelectProps<T>where
T: Unpin,
impl<T> UnsafeUnpin for MultiSelectProps<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> 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