Skip to main content

yew_datatable/components/
cell_render_context.rs

1//! Context passed to custom cell renderers.
2
3use yew_datatable_core::prelude::DataTableRowId;
4
5/// Context passed to custom cell renderers.
6#[derive(Clone)]
7pub struct CellRenderContext<T> {
8    /// The row data.
9    pub row: T,
10
11    /// The row ID.
12    pub row_id: DataTableRowId,
13
14    /// The row index.
15    pub row_index: usize,
16
17    /// The column ID.
18    pub column_id: String,
19
20    /// The column index.
21    pub column_index: usize,
22
23    /// The cell value as a string.
24    pub value: String,
25}