FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ButtonProps

    trait · ferroui-view · v0.5.0

    trait ButtonProps: ElementBuilder
    

    The properties and routed events of Button.

    View source

    Members

    click_mode

    fn click_mode<M>(self: Self, value: impl IntoProp<ferroui_controls::ClickMode, M>) -> Self
    

    Sets Button::click_mode_property.

    Source

    command

    fn command<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::input::ICommand>>, M>) -> Self
    

    Sets Button::command_property.

    Source

    hot_key

    fn hot_key<M>(self: Self, value: impl IntoProp<Option<ferroui_base::input::KeyGesture>, M>) -> Self
    

    Sets Button::hot_key_property.

    Source

    command_parameter

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

    Sets Button::command_parameter_property.

    Source

    is_default

    fn is_default<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
    

    Sets Button::is_default_property.

    Source

    is_cancel

    fn is_cancel<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
    

    Sets Button::is_cancel_property.

    Source

    flyout

    fn flyout<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_controls::primitives::FlyoutBase>>, M>) -> Self
    

    Sets Button::flyout_property.

    Source

    on_click

    fn on_click(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
    

    Handles Button::click_event.

    Source

    Trait implementations

    Availability

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