# AutoCompleteBoxProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-autocompleteboxprops/

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

```rust
trait AutoCompleteBoxProps: ElementBuilder
```

The properties and routed events of `AutoCompleteBox`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2256)

## Members

- [`caret_index`](#function-caret_index)
- [`placeholder_text`](#function-placeholder_text)
- [`placeholder_foreground`](#function-placeholder_foreground)
- [`minimum_prefix_length`](#function-minimum_prefix_length)
- [`minimum_populate_delay`](#function-minimum_populate_delay)
- [`max_drop_down_height`](#function-max_drop_down_height)
- [`is_text_completion_enabled`](#function-is_text_completion_enabled)
- [`item_template`](#function-item_template)
- [`clear_selection_on_lost_focus`](#function-clear_selection_on_lost_focus)
- [`is_drop_down_open`](#function-is_drop_down_open)
- [`selected_item`](#function-selected_item)
- [`text`](#function-text)
- [`filter_mode`](#function-filter_mode)
- [`items_source`](#function-items_source)
- [`max_length`](#function-max_length)
- [`inner_left_content`](#function-inner_left_content)
- [`inner_right_content`](#function-inner_right_content)
- [`on_selection_changed`](#function-on_selection_changed)
- [`on_text_changed`](#function-on_text_changed)

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

### caret_index

```rust
fn caret_index<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
```

Sets `AutoCompleteBox::caret_index_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2258)

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

### placeholder_text

```rust
fn placeholder_text<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
```

Sets `AutoCompleteBox::placeholder_text_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2263)

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

### placeholder_foreground

```rust
fn placeholder_foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `AutoCompleteBox::placeholder_foreground_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2268)

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

### minimum_prefix_length

```rust
fn minimum_prefix_length<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
```

Sets `AutoCompleteBox::minimum_prefix_length_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2273)

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

### minimum_populate_delay

```rust
fn minimum_populate_delay<M>(self: Self, value: impl IntoProp<std::time::Duration, M>) -> Self
```

Sets `AutoCompleteBox::minimum_populate_delay_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2278)

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

### max_drop_down_height

```rust
fn max_drop_down_height<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `AutoCompleteBox::max_drop_down_height_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2283)

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

### is_text_completion_enabled

```rust
fn is_text_completion_enabled<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `AutoCompleteBox::is_text_completion_enabled_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2288)

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

### item_template

```rust
fn item_template<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_controls::templates::IDataTemplate>>, M>) -> Self
```

Sets `AutoCompleteBox::item_template_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2293)

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

### clear_selection_on_lost_focus

```rust
fn clear_selection_on_lost_focus<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `AutoCompleteBox::clear_selection_on_lost_focus_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2298)

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

### is_drop_down_open

```rust
fn is_drop_down_open<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `AutoCompleteBox::is_drop_down_open_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2303)

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

### selected_item

```rust
fn selected_item<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
```

Sets `AutoCompleteBox::selected_item_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2308)

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

### text

```rust
fn text<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
```

Sets `AutoCompleteBox::text_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2313)

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

### filter_mode

```rust
fn filter_mode<M>(self: Self, value: impl IntoProp<ferroui_controls::AutoCompleteFilterMode, M>) -> Self
```

Sets `AutoCompleteBox::filter_mode_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2318)

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

### items_source

```rust
fn items_source<M>(self: Self, value: impl IntoProp<Option<ferroui_controls::ItemsSource>, M>) -> Self
```

Sets `AutoCompleteBox::items_source_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2323)

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

### max_length

```rust
fn max_length<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
```

Sets `AutoCompleteBox::max_length_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2328)

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

### inner_left_content

```rust
fn inner_left_content<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
```

Sets `AutoCompleteBox::inner_left_content_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2333)

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

### inner_right_content

```rust
fn inner_right_content<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
```

Sets `AutoCompleteBox::inner_right_content_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2338)

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

### on_selection_changed

```rust
fn on_selection_changed(self: Self, handler: impl Fn(&ferroui_controls::SelectionChangedEventArgs) -> () + 'static) -> Self
```

Handles `AutoCompleteBox::selection_changed_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2343)

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

### on_text_changed

```rust
fn on_text_changed(self: Self, handler: impl Fn(&ferroui_controls::TextChangedEventArgs) -> () + 'static) -> Self
```

Handles `AutoCompleteBox::text_changed_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L2348)

## Trait implementations

- [`AutoCompleteBoxProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-autocompleteboxprops/)

## Availability

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