# HierarchicalTreeDataGridSourceExtensions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-treedatagrid/trait-hierarchicaltreedatagridsourceextensions/

**trait** · [`ferroui-controls-treedatagrid`](/docs/0.5.0/api/ferroui-controls-treedatagrid/) · v0.5.0

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

The helpers of hierarchical sources (`WithHierarchicalExpanderTextColumn`,
`WithHierarchicalExpanderColumn`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_source_extensions.rs#L412)

## Members

- [`with_hierarchical_expander_text_column`](#function-with_hierarchical_expander_text_column)
- [`with_hierarchical_expander_column`](#function-with_hierarchical_expander_column)

<a id="function-with_hierarchical_expander_text_column"></a>

### with_hierarchical_expander_text_column

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_source_extensions.rs#L415)

<a id="function-with_hierarchical_expander_column"></a>

### with_hierarchical_expander_column

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/tree_data_grid_source_extensions.rs#L428)

## Trait implementations

- [`HierarchicalTreeDataGridSourceExtensions<M>`](/docs/0.5.0/api/ferroui-controls-treedatagrid/trait-hierarchicaltreedatagridsourceextensions/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
