Skip to main content

ColumnChooserFactory

Trait ColumnChooserFactory 

Source
pub trait ColumnChooserFactory: 'static {
    // Required method
    fn open(
        &self,
        context: &ColumnChooserContext,
        window: &mut Window,
        cx: &mut App,
    ) -> Option<AnyView>;
}
Expand description

Makes what the grid shows for “Choose columns…”.

Required Methods§

Source

fn open( &self, context: &ColumnChooserContext, window: &mut Window, cx: &mut App, ) -> Option<AnyView>

Returns the view the grid shows in its popover at context.position(), focused by the factory, or None after showing a chooser elsewhere (a dialog with window.open_dialog). Called once per opening, after the event that opened it, outside the grid’s update: the factory may read the grid through the handle.

Implementors§