# CarouselProps

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

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

```rust
trait CarouselProps: ElementBuilder
```

The properties and routed events of `Carousel`.

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

## Members

- [`page_transition`](#function-page_transition)
- [`is_swipe_enabled`](#function-is_swipe_enabled)
- [`viewport_fraction`](#function-viewport_fraction)

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

### page_transition

```rust
fn page_transition<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::animation::IPageTransition>>, M>) -> Self
```

Sets `Carousel::page_transition_property`.

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

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

### is_swipe_enabled

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

Sets `Carousel::is_swipe_enabled_property`.

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

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

### viewport_fraction

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

Sets `Carousel::viewport_fraction_property`.

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

## Trait implementations

- [`CarouselProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-carouselprops/)

## Availability

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