Skip to main content

TableEditor

Trait TableEditor 

Source
pub trait TableEditor<T> {
    type State: TableEditorState<T>;

    // Required method
    fn render(
        &self,
        area: Rect,
        cell_areas: &[Rect],
        buf: &mut Buffer,
        state: &mut Self::State,
    );
}
Expand description

This trait renders the row-editor widgets.

It gets a slice of areas for all the cells in the table, and renders all input widgets as it needs.

Required Associated Types§

Source

type State: TableEditorState<T>

State associated with the stateful widget.

Required Methods§

Source

fn render( &self, area: Rect, cell_areas: &[Rect], buf: &mut Buffer, state: &mut Self::State, )

Standard render call, but with added areas for each cell. The area is the area of the full row.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§