# NotificationCardProps

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

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

```rust
trait NotificationCardProps: ElementBuilder
```

The properties and routed events of `NotificationCard`.

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

## Members

- [`is_closed`](#function-is_closed)
- [`notification_type`](#function-notification_type)
- [`close_on_click`](#function-close_on_click)
- [`on_notification_closed`](#function-on_notification_closed)

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

### is_closed

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

Sets `NotificationCard::is_closed_property`.

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

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

### notification_type

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

Sets `NotificationCard::notification_type_property`.

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

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

### close_on_click

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

Sets `NotificationCard::close_on_click_property`.

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

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

### on_notification_closed

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

Handles `NotificationCard::notification_closed_event`.

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

## Trait implementations

- [`NotificationCardProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-notificationcardprops/)

## Availability

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