# RouteHandler

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/interactivity/type_alias-routehandler/

**type alias** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
type RouteHandler = std::rc::Rc<dyn Fn(&super::Interactive, &dyn IRoutedEventArgs) -> ()>
```

An event handler as stored on a route: invoked with the element the
handler is attached to and the args being routed.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/interactivity/event_route.rs#L8)

## Availability

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