# track_item_property_changed

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/function-track_item_property_changed/

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

```rust
fn track_item_property_changed<T: ObjectType>(collection: &MediaCollection<crate::Ref<T>>, callback: impl Fn() -> () + 'static) -> crate::reactive::Subscription
```

Invokes `callback` whenever a property changes on any item of the list.

A reset of the list is not supported and panics. Dropping the returned
guard stops tracking the items; `Subscription::detach` keeps tracking
them.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/media_collection.rs#L256)

## Availability

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