FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridSourceExtensions

    trait · ferroui-controls-treedatagrid · v0.5.0

    trait TreeDataGridSourceExtensions<M: TreeModel>: Sized
    

    The fluent helpers of the sources (TreeDataGridSourceExtensions): each adds a column of the control crate to the source and returns it.

    View source

    Members

    column_list

    fn column_list(self: &Self) -> &ColumnList<M>
    

    The columns of the source.

    Source

    with_row_header_column

    fn with_row_header_column(self: Self, header: Option<BoxedValue>, configure: impl FnOnce(&mut ColumnCreateOptions<M>) -> ()) -> Self
    

    Adds a column of row numbers (WithRowHeaderColumn).

    Source

    with_text_column

    fn with_text_column<V: Clone + PartialEq + PartialOrd + 'static>(self: Self, header: Option<BoxedValue>, getter: Accessor<M, V>, configure: impl FnOnce(&mut TextColumnCreateOptions<M>) -> ()) -> Self
    

    Adds a text column of the value getter reads (WithTextColumn); without a header, the header is the name of the member read.

    Source

    with_check_box_column

    fn with_check_box_column(self: Self, header: Option<BoxedValue>, getter: Accessor<M, bool>, configure: impl FnOnce(&mut CheckBoxColumnCreateOptions<M>) -> ()) -> Self
    

    Adds a two-state check box column (WithCheckBoxColumn).

    Source

    with_three_state_check_box_column

    fn with_three_state_check_box_column(self: Self, header: Option<BoxedValue>, getter: Accessor<M, Option<bool>>, configure: impl FnOnce(&mut CheckBoxColumnCreateOptions<M>) -> ()) -> Self
    

    Adds a three-state check box column (WithThreeStateCheckBoxColumn).

    Source

    with_template_column

    fn with_template_column(self: Self, header: Option<BoxedValue>, cell_template: Rc<dyn IDataTemplate>, cell_editing_template: Option<Rc<dyn IDataTemplate>>, configure: impl FnOnce(&mut TemplateColumnCreateOptions<M>) -> ()) -> Self
    

    Adds a template column (WithTemplateColumn).

    Source

    with_template_column_from_resource_keys

    fn with_template_column_from_resource_keys(self: Self, header: Option<BoxedValue>, cell_template_resource_key: ResourceKey, cell_editing_template_resource_key: Option<ResourceKey>, configure: impl FnOnce(&mut TemplateColumnCreateOptions<M>) -> ()) -> Self
    

    Adds a template column whose templates are resources (WithTemplateColumnFromResourceKeys).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.