middag-react
    Preparing search index...

    Interface ConditionalAction

    Conditional action — row-level action with per-row visibility, disabled, and loading state. Used by DenseTable where conditions evaluate against each row.

    interface ConditionalAction {
        capability?: string;
        confirmation?: ActionConfirmation;
        disabled?: true;
        disabled_reason_field?: string;
        disabled_when?: FormCondition;
        icon?: string;
        id: string;
        intent: ActionIntent;
        label: Label;
        loading?: true;
        loading_when?: FormCondition;
        target: ActionTarget;
        variant?: "icon" | "button";
        visible_when?: FormCondition;
    }

    Hierarchy

    • Action
      • ConditionalAction
    Index
    capability?: string
    confirmation?: ActionConfirmation

    Confirmation dialog (Pro-extended).

    disabled?: true
    disabled_reason_field?: string

    Field name in row data containing a tooltip reason when disabled.

    disabled_when?: FormCondition

    Disable this action when condition is met (evaluated per row).

    icon?: string
    id: string
    intent: ActionIntent
    label: Label
    loading?: true
    loading_when?: FormCondition

    Show loading spinner when condition is met (evaluated per row).

    target: ActionTarget
    variant?: "icon" | "button"

    Row action display variant.

    visible_when?: FormCondition

    Show this action only when condition is met (evaluated per row).