FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ClearCollectionAction

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

    struct ClearCollectionAction
    

    Clears all items from a target list when invoked.

    The action returns true when the list was cleared; else false.

    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<ClearCollectionAction>
    

    Returns a strong reference to this object.

    Source

    target_property

    fn target_property() -> &'static StyledProperty<Option<ItemsSource>>
    

    Identifies the Target property.

    Deviation (DEVIATIONS.md, Behaviors): the target (IList of the reference) is an untyped list of the framework (ItemsSource); a FerroList or an ObservableCollection of the item types the items actions of the port change (see ItemsControl/) is cleared, another list is read only.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    target

    fn target(self: &Self) -> Option<ItemsSource>
    

    Gets or sets the collection to clear.

    Source

    set_target

    fn set_target(self: &Self, value: Option<ItemsSource>)
    

    Source

    Trait implementations

    Availability

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