pub struct TableKit<'a> { /* private fields */ }Implementations§
Source§impl<'a> TableKit<'a>
impl<'a> TableKit<'a>
pub fn new( id: impl Into<String>, provider: &'a dyn TableProvider, state: &'a mut TableState, ) -> Self
pub fn with_columns(self, columns: Vec<Column>) -> Self
pub const fn with_row_height(self, height: f32) -> Self
pub const fn with_max_height(self, max_height: Option<f32>) -> Self
pub const fn with_colors(self, org: &'a [[u8; 3]], user: &'a [[u8; 3]]) -> Self
pub const fn with_auto_size_mode(self, mode: AutoSizeMode) -> Self
pub const fn with_max_rows(self, max_rows: u64) -> Self
Sourcepub const fn with_scroll_to_row(self, row_nr: u64, align: Align) -> Self
pub const fn with_scroll_to_row(self, row_nr: u64, align: Align) -> Self
Set an optional row to scroll to during the next rendering pass.
Sourcepub const fn with_striped(self, striped: bool) -> Self
pub const fn with_striped(self, striped: bool) -> Self
Enable or disable alternating row background colors.
Sourcepub const fn with_striping_color(self, color: Color32) -> Self
pub const fn with_striping_color(self, color: Color32) -> Self
Provide a custom background color for alternating striped rows.
If none is provided, it falls back to ui.visuals().faint_bg_color.
Sourcepub const fn with_hover_color(self, color: Color32) -> Self
pub const fn with_hover_color(self, color: Color32) -> Self
Set an optional custom background overlay color for hovered rows.
pub fn show<F>( self, ui: &mut Ui, custom_cell_ui: F, ) -> Result<Response, TableError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TableKit<'a>
impl<'a> !Send for TableKit<'a>
impl<'a> !Sync for TableKit<'a>
impl<'a> !UnwindSafe for TableKit<'a>
impl<'a> Freeze for TableKit<'a>
impl<'a> Unpin for TableKit<'a>
impl<'a> UnsafeUnpin for TableKit<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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