FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    register_component

    function · ferroui-view · v0.5.0

    fn register_component<E: crate::IntoElement>(name: &str, view: impl Fn() -> E + 'static)
    

    Registers the element view makes under name, for the Component property of a ComponentHost (<view:ComponentHost Component="Counter"/> in XAML).

    View source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.