# CommandBarProps

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

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

```rust
trait CommandBarProps: ElementBuilder
```

The properties and routed events of `CommandBar`.

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

## Members

- [`content`](#function-content)
- [`default_label_position`](#function-default_label_position)
- [`is_dynamic_overflow_enabled`](#function-is_dynamic_overflow_enabled)
- [`overflow_button_visibility`](#function-overflow_button_visibility)
- [`is_open`](#function-is_open)
- [`is_sticky`](#function-is_sticky)
- [`item_width_bottom`](#function-item_width_bottom)
- [`item_width_right`](#function-item_width_right)
- [`item_width_collapsed`](#function-item_width_collapsed)
- [`on_opening`](#function-on_opening)
- [`on_opened`](#function-on_opened)
- [`on_closing`](#function-on_closing)
- [`on_closed`](#function-on_closed)

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

### content

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

Sets `CommandBar::content_property`.

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

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

### default_label_position

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

Sets `CommandBar::default_label_position_property`.

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

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

### is_dynamic_overflow_enabled

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

Sets `CommandBar::is_dynamic_overflow_enabled_property`.

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

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

### overflow_button_visibility

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

Sets `CommandBar::overflow_button_visibility_property`.

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

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

### is_open

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

Sets `CommandBar::is_open_property`.

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

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

### is_sticky

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

Sets `CommandBar::is_sticky_property`.

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

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

### item_width_bottom

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

Sets `CommandBar::item_width_bottom_property`.

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

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

### item_width_right

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

Sets `CommandBar::item_width_right_property`.

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

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

### item_width_collapsed

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

Sets `CommandBar::item_width_collapsed_property`.

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

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

### on_opening

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

Handles `CommandBar::opening_event`.

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

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

### on_opened

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

Handles `CommandBar::opened_event`.

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

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

### on_closing

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

Handles `CommandBar::closing_event`.

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

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

### on_closed

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

Handles `CommandBar::closed_event`.

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

## Trait implementations

- [`CommandBarProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-commandbarprops/)

## Availability

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