# ToggleSwitchProps

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

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

```rust
trait ToggleSwitchProps: ElementBuilder
```

The properties and routed events of `ToggleSwitch`.

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

## Members

- [`off_content`](#function-off_content)
- [`off_content_template`](#function-off_content_template)
- [`on_content`](#function-on_content)
- [`on_content_template`](#function-on_content_template)
- [`knob_transitions`](#function-knob_transitions)

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

### off_content

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

Sets `ToggleSwitch::off_content_property`.

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

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

### off_content_template

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

Sets `ToggleSwitch::off_content_template_property`.

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

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

### on_content

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

Sets `ToggleSwitch::on_content_property`.

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

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

### on_content_template

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

Sets `ToggleSwitch::on_content_template_property`.

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

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

### knob_transitions

```rust
fn knob_transitions<M>(self: Self, value: impl IntoProp<Option<ferroui_base::animation::Transitions>, M>) -> Self
```

Sets `ToggleSwitch::knob_transitions_property`.

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

## Trait implementations

- [`ToggleSwitchProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-toggleswitchprops/)

## Availability

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