pub struct List<'a, Selection = RowSelection> { /* private fields */ }Expand description
List widget.
Fully compatible with ratatui List. Adds Scroll, selection models, and event-handling.
Implementations§
Source§impl<'a, Selection> List<'a, Selection>
impl<'a, Selection> List<'a, Selection>
Sourcepub fn styles_opt(self, styles: Option<ListStyle>) -> Self
pub fn styles_opt(self, styles: Option<ListStyle>) -> Self
Set all styles.
Sourcepub fn select_style<S: Into<Style>>(self, select_style: S) -> Self
pub fn select_style<S: Into<Style>>(self, select_style: S) -> Self
Select style.
Sourcepub fn focus_style<S: Into<Style>>(self, focus_style: S) -> Self
pub fn focus_style<S: Into<Style>>(self, focus_style: S) -> Self
Focused style.
Sourcepub fn direction(self, direction: ListDirection) -> Self
pub fn direction(self, direction: ListDirection) -> Self
List direction.
Trait Implementations§
Source§impl<'a, Item, Selection> FromIterator<Item> for List<'a, Selection>
impl<'a, Item, Selection> FromIterator<Item> for List<'a, Selection>
Source§fn from_iter<Iter: IntoIterator<Item = Item>>(iter: Iter) -> Self
fn from_iter<Iter: IntoIterator<Item = Item>>(iter: Iter) -> Self
Creates a value from an iterator. Read more
Source§impl<Selection: ListSelection> StatefulWidget for List<'_, Selection>
impl<Selection: ListSelection> StatefulWidget for List<'_, Selection>
Auto Trait Implementations§
impl<'a, Selection> Freeze for List<'a, Selection>
impl<'a, Selection> RefUnwindSafe for List<'a, Selection>where
Selection: RefUnwindSafe,
impl<'a, Selection> Send for List<'a, Selection>where
Selection: Send,
impl<'a, Selection> Sync for List<'a, Selection>where
Selection: Sync,
impl<'a, Selection> Unpin for List<'a, Selection>where
Selection: Unpin,
impl<'a, Selection> UnwindSafe for List<'a, Selection>where
Selection: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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