FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    HierarchicalTreeDataGridSourceExtensions

    trait · ferroui-controls-treedatagrid · v0.5.0

    trait HierarchicalTreeDataGridSourceExtensions<M: TreeModel>: TreeDataGridSourceExtensions<M>
    

    The helpers of hierarchical sources (WithHierarchicalExpanderTextColumn, WithHierarchicalExpanderColumn).

    View source

    Members

    with_hierarchical_expander_text_column

    fn with_hierarchical_expander_text_column<V: Clone + PartialEq + PartialOrd + 'static>(self: Self, header: Option<BoxedValue>, getter: Accessor<M, V>, child_selector: impl Fn(&Rc<M>) -> Option<Models<M>> + 'static, configure: impl FnOnce(&mut HierarchicalExpanderColumnCreateOptions<M>) -> ()) -> Self
    

    Adds an expander column whose cells show the text of the value getter reads, and whose rows have the children child_selector gives (WithHierarchicalExpanderTextColumn).

    Source

    with_hierarchical_expander_column

    fn with_hierarchical_expander_column(self: Self, header: Option<BoxedValue>, inner_column: &TreeDataGridTemplateColumn, child_selector: impl Fn(&Rc<M>) -> Option<Models<M>> + 'static, configure: impl FnOnce(&mut HierarchicalExpanderColumnCreateOptions<M>) -> ()) -> Self
    

    Adds an expander column whose cells show the declarative template column inner_column (WithHierarchicalExpanderColumn).

    Source

    Trait implementations

    Availability

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