# CommandBarButtonProps

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

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

```rust
trait CommandBarButtonProps: ElementBuilder
```

The properties and routed events of `CommandBarButton`.

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

## 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 `CommandBarButton::label_property`.

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

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

### icon

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

Sets `CommandBarButton::icon_property`.

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

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

### is_compact

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

Sets `CommandBarButton::is_compact_property`.

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

<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 `CommandBarButton::dynamic_overflow_order_property`.

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

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

### label_position

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

Sets `CommandBarButton::label_position_property`.

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

<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 `CommandBarButton::is_in_overflow_property`.

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

## Trait implementations

- [`CommandBarButtonProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-commandbarbuttonprops/)

## Availability

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