Trait patternfly_yew::components::table::TableEntryRenderer
source · pub trait TableEntryRenderer<C>{
// 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§
sourcefn render_cell(&self, context: CellContext<'_, C>) -> Cell
fn render_cell(&self, context: CellContext<'_, C>) -> Cell
Render the cell for the requested column.
Provided Methods§
sourcefn is_full_width_details(&self) -> Option<bool>
fn is_full_width_details(&self) -> Option<bool>
Control if the details section spans the full width.
sourcefn render_details(&self) -> Vec<Span>
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.
sourcefn render_column_details(&self, column: &C) -> Vec<Span>
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.
sourcefn actions(&self) -> Vec<MenuChildVariant>
fn actions(&self) -> Vec<MenuChildVariant>
Render the row actions.
Defaults to no actions.