Skip to main content

TableRowStyle

Trait TableRowStyle 

Source
pub trait TableRowStyle: TableRowMeta {
    type ColumnId: Into<usize> + From<usize>;

    // Required method
    fn render_table_cell(
        &self,
        col: Self::ColumnId,
        window: &mut Window,
        cx: &mut App,
    ) -> AnyElement;

    // Provided method
    fn render_table_row(
        &self,
        row_ix: usize,
        window: &mut Window,
        cx: &mut App,
    ) -> Stateful<Div> { ... }
}
Expand description

Rendering contract for a table row.

Required Associated Types§

Source

type ColumnId: Into<usize> + From<usize>

The type representing the columns of the table.

Required Methods§

Source

fn render_table_cell( &self, col: Self::ColumnId, window: &mut Window, cx: &mut App, ) -> AnyElement

Renders a single cell.

Provided Methods§

Source

fn render_table_row( &self, row_ix: usize, window: &mut Window, cx: &mut App, ) -> Stateful<Div>

Renders the row container.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§