# ExpanderProps

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

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

```rust
trait ExpanderProps: ElementBuilder
```

The properties and routed events of `Expander`.

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

## Members

- [`content_transition`](#function-content_transition)
- [`expand_direction`](#function-expand_direction)
- [`is_expanded`](#function-is_expanded)
- [`on_collapsed`](#function-on_collapsed)
- [`on_expanded`](#function-on_expanded)

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

### content_transition

```rust
fn content_transition<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::animation::IPageTransition>>, M>) -> Self
```

Sets `Expander::content_transition_property`.

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

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

### expand_direction

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

Sets `Expander::expand_direction_property`.

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

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

### is_expanded

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

Sets `Expander::is_expanded_property`.

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

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

### on_collapsed

```rust
fn on_collapsed(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `Expander::collapsed_event`.

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

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

### on_expanded

```rust
fn on_expanded(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `Expander::expanded_event`.

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

## Trait implementations

- [`ExpanderProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-expanderprops/)

## Availability

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