# RoutedViewHostProps

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

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

```rust
trait RoutedViewHostProps: ElementBuilder
```

The properties and routed events of `RoutedViewHost`.

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

## Members

- [`router`](#function-router)
- [`view_contract`](#function-view_contract)
- [`default_content`](#function-default_content)

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

### router

```rust
fn router<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<ferroui_reactiveui::routing::RoutingState>>, M>) -> Self
```

Sets `RoutedViewHost::router_property`.

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

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

### view_contract

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

Sets `RoutedViewHost::view_contract_property`.

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

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

### default_content

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

Sets `RoutedViewHost::default_content_property`.

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

## Trait implementations

- [`RoutedViewHostProps`](/docs/0.5.0/api/ferroui-view/generated/reactiveui/trait-routedviewhostprops/)

## Availability

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