pub trait CellEditor<R: GridRow>: 'static {
// Required method
fn open(
&self,
start: &EditorStart<'_, R>,
window: &mut Window,
cx: &mut App,
) -> EditorOpen;
}Expand description
Edits the cells of a column (LiveGridState::with_editor). Asked
once per edit start, on the UI thread, outside prepaint.
Required Methods§
Sourcefn open(
&self,
start: &EditorStart<'_, R>,
window: &mut Window,
cx: &mut App,
) -> EditorOpen
fn open( &self, start: &EditorStart<'_, R>, window: &mut Window, cx: &mut App, ) -> EditorOpen
What to do with a start: open a field, commit at once, or refuse.