pub trait TableEntryRenderer<C>where
    C: Clone + Eq + 'static,{
    // Required method
    fn render_cell(&self, context: CellContext<'_, C>) -> Cell;

    // Provided methods
    fn is_full_width_details(&self) -> Option<bool> { ... }
    fn render_details(&self) -> Vec<Span> { ... }
    fn render_column_details(&self, column: &C) -> Vec<Span> { ... }
    fn actions(&self) -> Vec<MenuChildVariant> { ... }
}
Expand description

Render table entries

Required Methods§

source

fn render_cell(&self, context: CellContext<'_, C>) -> Cell

Render the cell for the requested column.

Provided Methods§

source

fn is_full_width_details(&self) -> Option<bool>

Control if the details section spans the full width.

source

fn render_details(&self) -> Vec<Span>

Render the details section.

Used in combination with super::TableMode::Expandable or super::TableMode::CompactExpandable.

Defaults to not having details.

source

fn render_column_details(&self, column: &C) -> Vec<Span>

Render the details section for a specific column.

Used in combination with super::TableMode::Expandable or super::TableMode::CompactExpandable when one or more headers is marked expandable=true.

Defaults to not having details.

source

fn actions(&self) -> Vec<MenuChildVariant>

Render the row actions.

Defaults to no actions.

Implementors§