Skip to main content

TableLoader

Trait TableLoader 

Source
pub trait TableLoader: TableDelegate {
    const THRESHOLD: usize = 10;

    // Required method
    fn load_more(
        &mut self,
        window: &mut Window,
        cx: &mut Context<'_, TableState<Self>>,
    );
}
Expand description

Trait for defining table loading behavior.

Provided Associated Constants§

Source

const THRESHOLD: usize = 10

Number of rows from the bottom at which to trigger loading more data.

Required Methods§

Source

fn load_more( &mut self, window: &mut Window, cx: &mut Context<'_, TableState<Self>>, )

Load more data into the table.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§