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.
Members
column_listwith_row_header_columnwith_text_columnwith_check_box_columnwith_three_state_check_box_columnwith_template_columnwith_template_column_from_resource_keys
column_list
fn column_list(self: &Self) -> &ColumnList<M>
The columns of the 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).
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.
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).
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).
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).
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).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.