# Attach

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/element/type_alias-attach/

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

```rust
type Attach = std::rc::Rc<dyn Fn(&ferroui_base::Ref<ferroui_controls::Control>) -> ()>
```

What attaches a handler (a routed event, a change of a property) to the
control of an element.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/element.rs#L152)

## Availability

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