FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ToggleSwitchProps

    trait · ferroui-view · v0.5.0

    trait ToggleSwitchProps: ElementBuilder
    

    The properties and routed events of ToggleSwitch.

    View source

    Members

    off_content

    fn off_content<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
    

    Sets ToggleSwitch::off_content_property.

    Source

    off_content_template

    fn off_content_template<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_controls::templates::IDataTemplate>>, M>) -> Self
    

    Sets ToggleSwitch::off_content_template_property.

    Source

    on_content

    fn on_content<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
    

    Sets ToggleSwitch::on_content_property.

    Source

    on_content_template

    fn on_content_template<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_controls::templates::IDataTemplate>>, M>) -> Self
    

    Sets ToggleSwitch::on_content_template_property.

    Source

    knob_transitions

    fn knob_transitions<M>(self: Self, value: impl IntoProp<Option<ferroui_base::animation::Transitions>, M>) -> Self
    

    Sets ToggleSwitch::knob_transitions_property.

    Source

    Trait implementations

    Availability

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