pub struct SelectTable {
header: Vec<Text<'static>>,
table: Table<'static>,
state: TableState,
scroll_state: ScrollbarState,
rows: usize,
rows_display: usize,
row_height: usize,
}Fields§
§header: Vec<Text<'static>>§table: Table<'static>§state: TableState§scroll_state: ScrollbarState§rows: usize§rows_display: usize§row_height: usizeImplementations§
Source§impl SelectTable
impl SelectTable
pub fn new(header: Vec<Text<'static>>) -> Self
pub fn set_content( &mut self, content: Vec<Vec<Text<'static>>>, row_height: usize, )
pub fn selected(&self) -> Option<usize>
pub fn select(&mut self, index: Option<usize>)
pub fn set_to(&mut self, i: usize)
pub fn go_forward(&mut self, step: usize)
pub fn go_back(&mut self, step: usize)
pub fn next(&mut self)
pub fn page_down(&mut self)
pub fn previous(&mut self)
pub fn page_up(&mut self)
pub fn home(&mut self)
pub fn end(&mut self)
pub fn set_rows(&mut self, rows: usize)
Trait Implementations§
Source§impl ProcessEvent for SelectTable
impl ProcessEvent for SelectTable
Auto Trait Implementations§
impl Freeze for SelectTable
impl RefUnwindSafe for SelectTable
impl Send for SelectTable
impl Sync for SelectTable
impl Unpin for SelectTable
impl UnwindSafe for SelectTable
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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