Class DataCollectionRowAction<TItem>
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.dll
Single per-row action rendered as an icon-only button at the end of
each row / inside each card. Combine multiple actions in a list and
pass via RowActions on BOBDataGrid<TItem> /
BOBDataCards<TItem>.
Visibility and enabled state can both depend on the row item — pass predicates to Visible / Enabled to support per-row policies (e.g. hide "Delete" on read-only rows).
public sealed class DataCollectionRowAction<TItem>
Type Parameters
TItemRow item type.
- Inheritance
-
objectDataCollectionRowAction<TItem>
Constructors
DataCollectionRowAction()
public DataCollectionRowAction()
Properties
Color
Optional palette color for the icon — semantic shorthand
(PaletteColor.Error for delete, PaletteColor.Success
for approve, etc.). Default is the inherited theme color.
public PaletteColor? Color { get; init; }
Property Value
Enabled
Per-row enabled predicate. null means always enabled.
public Func<TItem, bool>? Enabled { get; init; }
Property Value
- Func<TItem, bool>
Icon
public IconKey? Icon { get; init; }
Property Value
Label
Accessible label exposed to screen readers + tooltip text.
public string Label { get; init; }
Property Value
- string
OnClick
Async handler invoked when the user activates the action.
public Func<TItem, Task>? OnClick { get; init; }
Property Value
- Func<TItem, Task>
Visible
Per-row visibility predicate. null means always visible.
public Func<TItem, bool>? Visible { get; init; }
Property Value
- Func<TItem, bool>