# TemplateColumnOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-treedatagrid/models/struct-templatecolumnoptions/

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

```rust
struct TemplateColumnOptions<M: 'static>
```

`TemplateColumnOptions<TModel>`.

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

## Members

- [`new`](#function-new)
- [`is_text_search_enabled`](#function-is_text_search_enabled)
- [`set_is_text_search_enabled`](#function-set_is_text_search_enabled)
- [`text_search_value_selector`](#function-text_search_value_selector)
- [`set_text_search_value_selector`](#function-set_text_search_value_selector)

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

### new

```rust
fn new() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/template_column_options.rs#L29)

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

### is_text_search_enabled

```rust
fn is_text_search_enabled(self: &Self) -> bool
```

Whether the column takes part in text searches.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/template_column_options.rs#L34)

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

### set_is_text_search_enabled

```rust
fn set_is_text_search_enabled(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/template_column_options.rs#L38)

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

### text_search_value_selector

```rust
fn text_search_value_selector(self: &Self) -> Option<TextSearchValueSelector<M>>
```

The function that selects the search text of a model.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/template_column_options.rs#L43)

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

### set_text_search_value_selector

```rust
fn set_text_search_value_selector(self: &Self, value: Option<TextSearchValueSelector<M>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/template_column_options.rs#L47)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Default`
- `Deref`
- [`IColumnOptions<M>`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icolumnoptions/)
- [`ICellOptions`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icelloptions/)
- [`ITemplateCellOptions`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-itemplatecelloptions/)

## Availability

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