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
TItemRow item type.
- Inheritance
-
objectDataCollectionBulkAction<TItem>
Constructors
DataCollectionBulkAction()
public DataCollectionBulkAction()
Properties
Color
Optional palette color (e.g. Error for destructive bulk actions).
public PaletteColor? Color { get; init; }
Property Value
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
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>