Skip to content

actionTone

Overview

The intrinsic, placement-independent tone for an action. An action whose metadata declares tone wins (the override seam for the server or model config); otherwise a delete/destroy action is destructive and everything else is neutral.

Signature

actionTone(actionName, actionDetail)

Parameters

NameTypeRequiredDescription
actionNamestringyesThe action / view name (e.g. create, destroy).
actionDetailActionInfonoThe action's metadata, when available.

Returns

"neutral" | "destructive"

The intrinsic tone.

Source

client/lib/utils/actionVariant.js:31

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2