# CalendarProps

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

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

```rust
trait CalendarProps: ElementBuilder
```

The properties and routed events of `Calendar`.

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

## Members

- [`first_day_of_week`](#function-first_day_of_week)
- [`is_today_highlighted`](#function-is_today_highlighted)
- [`header_background`](#function-header_background)
- [`is_week_number_visible`](#function-is_week_number_visible)
- [`week_number_rule`](#function-week_number_rule)
- [`display_mode`](#function-display_mode)
- [`selection_mode`](#function-selection_mode)
- [`allow_tap_range_selection`](#function-allow_tap_range_selection)
- [`selected_date`](#function-selected_date)
- [`display_date`](#function-display_date)
- [`display_date_start`](#function-display_date_start)
- [`display_date_end`](#function-display_date_end)

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

### first_day_of_week

```rust
fn first_day_of_week<M>(self: Self, value: impl IntoProp<ferroui_base::utilities::DayOfWeek, M>) -> Self
```

Sets `Calendar::first_day_of_week_property`.

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

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

### is_today_highlighted

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

Sets `Calendar::is_today_highlighted_property`.

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

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

### header_background

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

Sets `Calendar::header_background_property`.

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

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

### is_week_number_visible

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

Sets `Calendar::is_week_number_visible_property`.

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

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

### week_number_rule

```rust
fn week_number_rule<M>(self: Self, value: impl IntoProp<ferroui_base::utilities::CalendarWeekRule, M>) -> Self
```

Sets `Calendar::week_number_rule_property`.

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

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

### display_mode

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

Sets `Calendar::display_mode_property`.

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

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

### selection_mode

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

Sets `Calendar::selection_mode_property`.

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

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

### allow_tap_range_selection

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

Sets `Calendar::allow_tap_range_selection_property`.

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

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

### selected_date

```rust
fn selected_date<M>(self: Self, value: impl IntoProp<Option<ferroui_base::utilities::DateTime>, M>) -> Self
```

Sets `Calendar::selected_date_property`.

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

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

### display_date

```rust
fn display_date<M>(self: Self, value: impl IntoProp<ferroui_base::utilities::DateTime, M>) -> Self
```

Sets `Calendar::display_date_property`.

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

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

### display_date_start

```rust
fn display_date_start<M>(self: Self, value: impl IntoProp<Option<ferroui_base::utilities::DateTime>, M>) -> Self
```

Sets `Calendar::display_date_start_property`.

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

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

### display_date_end

```rust
fn display_date_end<M>(self: Self, value: impl IntoProp<Option<ferroui_base::utilities::DateTime>, M>) -> Self
```

Sets `Calendar::display_date_end_property`.

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

## Trait implementations

- [`CalendarProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-calendarprops/)

## Availability

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