# NativeMenuItemProps

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

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

```rust
trait NativeMenuItemProps: ElementBuilder
```

The properties and routed events of `NativeMenuItem`.

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

## Members

- [`menu`](#function-menu)
- [`icon`](#function-icon)
- [`header`](#function-header)
- [`tool_tip`](#function-tool_tip)
- [`gesture`](#function-gesture)
- [`is_checked`](#function-is_checked)
- [`toggle_type`](#function-toggle_type)
- [`command`](#function-command)
- [`command_parameter`](#function-command_parameter)
- [`is_enabled`](#function-is_enabled)
- [`is_visible`](#function-is_visible)

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

### menu

```rust
fn menu<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_controls::NativeMenu>>, M>) -> Self
```

Sets `NativeMenuItem::menu_property`.

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

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

### icon

```rust
fn icon<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::imaging::IBitmap>>, M>) -> Self
```

Sets `NativeMenuItem::icon_property`.

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

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

### header

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

Sets `NativeMenuItem::header_property`.

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

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

### tool_tip

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

Sets `NativeMenuItem::tool_tip_property`.

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

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

### gesture

```rust
fn gesture<M>(self: Self, value: impl IntoProp<Option<ferroui_base::input::KeyGesture>, M>) -> Self
```

Sets `NativeMenuItem::gesture_property`.

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

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

### is_checked

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

Sets `NativeMenuItem::is_checked_property`.

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

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

### toggle_type

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

Sets `NativeMenuItem::toggle_type_property`.

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

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

### command

```rust
fn command<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::input::ICommand>>, M>) -> Self
```

Sets `NativeMenuItem::command_property`.

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

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

### command_parameter

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

Sets `NativeMenuItem::command_parameter_property`.

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

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

### is_enabled

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

Sets `NativeMenuItem::is_enabled_property`.

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

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

### is_visible

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

Sets `NativeMenuItem::is_visible_property`.

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

## Trait implementations

- [`NativeMenuItemProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-nativemenuitemprops/)

## Availability

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