# CommandBarToggleButtonProps

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

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

```rust
trait CommandBarToggleButtonProps: ElementBuilder
```

The properties and routed events of `CommandBarToggleButton`.

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

## Members

- [`label`](#function-label)
- [`icon`](#function-icon)
- [`is_compact`](#function-is_compact)
- [`dynamic_overflow_order`](#function-dynamic_overflow_order)
- [`label_position`](#function-label_position)
- [`is_in_overflow`](#function-is_in_overflow)

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

### label

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

Sets `CommandBarToggleButton::label_property`.

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

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

### icon

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

Sets `CommandBarToggleButton::icon_property`.

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

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

### is_compact

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

Sets `CommandBarToggleButton::is_compact_property`.

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

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

### dynamic_overflow_order

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

Sets `CommandBarToggleButton::dynamic_overflow_order_property`.

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

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

### label_position

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

Sets `CommandBarToggleButton::label_position_property`.

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

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

### is_in_overflow

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

Sets `CommandBarToggleButton::is_in_overflow_property`.

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

## Trait implementations

- [`CommandBarToggleButtonProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-commandbartogglebuttonprops/)

## Availability

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