# SelectingItemsControlSelectionAdapterOverrides

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/utils/trait-selectingitemscontrolselectionadapteroverrides/

**trait** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
trait SelectingItemsControlSelectionAdapterOverrides
```

The overridable members of [`SelectingItemsControlSelectionAdapter`](/docs/0.5.0/api/ferroui-controls/utils/struct-selectingitemscontrolselectionadapter/):
the methods a class deriving from it can replace. Every method defaults
to the behaviour of the adapter (`base_*`), which an override calls to
run the base implementation.

Install the overrides with
`SelectingItemsControlSelectionAdapter::with_overrides`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L27)

## Members

- [`on_commit`](#function-on_commit)
- [`on_cancel`](#function-on_cancel)

<a id="function-on_commit"></a>

### on_commit

```rust
fn on_commit(self: &Self, adapter: &SelectingItemsControlSelectionAdapter)
```

Raises the commit event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L29)

<a id="function-on_cancel"></a>

### on_cancel

```rust
fn on_cancel(self: &Self, adapter: &SelectingItemsControlSelectionAdapter)
```

Raises the cancel event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/selecting_items_control_selection_adapter.rs#L34)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
