Table of Contents

Class DataCollectionBulkAction<TItem>

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.dll

Single bulk action rendered in the toolbar when at least one row is selected. Receives the current selection on activation. Use for "Delete selected", "Export selected", "Approve all" workflows.

public sealed class DataCollectionBulkAction<TItem>

Type Parameters

TItem

Row item type.

Inheritance
object
DataCollectionBulkAction<TItem>

Constructors

DataCollectionBulkAction()

public DataCollectionBulkAction()

Properties

Color

Optional palette color (e.g. Error for destructive bulk actions).

public PaletteColor? Color { get; init; }

Property Value

PaletteColor

Enabled

Enabled predicate. Receives the selection — return false to disable the button (e.g. when the action requires homogeneous types and the selection is mixed).

public Func<IReadOnlyCollection<TItem>, bool>? Enabled { get; init; }

Property Value

Func<IReadOnlyCollection<TItem>, bool>

Icon

Optional leading icon.

public IconKey? Icon { get; init; }

Property Value

IconKey?

Label

Accessible label rendered as button text + ARIA label.

public string Label { get; init; }

Property Value

string

OnClick

Async handler invoked with the current selection.

public Func<IReadOnlyCollection<TItem>, Task>? OnClick { get; init; }

Property Value

Func<IReadOnlyCollection<TItem>, Task>

Visible

Visibility predicate evaluated against the current selection. null means always visible while at least one row is selected.

public Func<IReadOnlyCollection<TItem>, bool>? Visible { get; init; }

Property Value

Func<IReadOnlyCollection<TItem>, bool>