AutoCompleteBoxQuerySubmittedEventArgs
struct · ferroui-controls · v0.5.0
struct AutoCompleteBoxQuerySubmittedEventArgs
Provides data for the QuerySubmitted event of the AutoCompleteBox:
the text of the box when Enter submitted it, and the suggestion that Enter chose from the open
drop-down, if any.
Members
new
fn new<T: ?Sized>(routed_event: Option<&RoutedEvent<T>>, query_text: String, chosen_suggestion: Option<BoxedValue>) -> Self
Creates args for a routed event, the submitted text and the chosen suggestion.
query_text
fn query_text(self: &Self) -> &str
The text of the box when the query was submitted.
chosen_suggestion
fn chosen_suggestion(self: &Self) -> Option<&BoxedValue>
The item chosen from the open drop-down by the Enter that submitted the query; None when
the drop-down was closed or nothing was selected in it.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedClassDefaultsErasedDestructorIntoEitherCloneDerefIRoutedEventArgs
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.