FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextInputTrigger

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct TextInputTrigger
    

    A trigger of InputElement::text_input_event: runs the actions with the text input args as the parameter when the text is input (any text when it is not set).

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TextInputTrigger>
    

    Returns a strong reference to this object.

    Source

    text_property

    fn text_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the Text property.

    Deviation (DEVIATIONS.md, Behaviors): the reference registers this property with KeyDownTrigger as its owner, so markup does not find it on this trigger; here it is registered on its own class (defect corrected).

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a trigger.

    Source

    text

    fn text(self: &Self) -> Option<String>
    

    Gets or sets the text that fires the trigger.

    Source

    set_text

    fn set_text(self: &Self, value: Option<String>)
    

    Source

    Trait implementations

    Availability

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