TableEditor

Trait TableEditor 

Source
pub trait TableEditor {
    type State: TableEditorState;

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

StatefulWidget alike trait.

This one takes 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

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.

Implementors§