# factory_from_template

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-repeater/function-factory_from_template/

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

```rust
fn factory_from_template(item: Option<&ferroui_base::BoxedValue>) -> Result<Option<std::rc::Rc<dyn IElementFactory>>, super::element_factory::ElementFactoryError>
```

Converts the untyped ItemTemplate property to its native factory contract.
`None` is left for the repeater's data-as-element/default-template path.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_template_wrapper.rs#L172)

## Availability

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