Setting the file. One moment.
Subchapter 2.24
references/auto-patterns-dashboard/resolved-action.mdMarkdown1 KBView on GitHub
interface ResolvedAction {
label: string; // Display text
icon: IconElement; // React Icon Component
onClick: () => void; // async handlers compile due to TS void-return bivariance
biName?: string; // type-optional; project convention is to ALWAYS set it (see Implementation Rules)
disabled?: boolean;
hidden?: boolean;
tooltip?: string;
skin?: string; // recommended values: 'standard' | 'inverted' | 'premium' | 'dark' | 'destructive'
}disabled is true THEN tooltip is RECOMMENDED.ResolvedAction.biName is provided THEN value MUST match configuration biName.label, icon, onClick, and biName.<Icon />).onClick operations properly (use try/catch or SDK helpers).hidden for permission checks.skin="destructive" for delete/dangerous actions.// Resolver Function Return Value
return {
label: 'Export',
icon: <Download />,
biName: 'export-action',
onClick: async () => {
// Action logic
},
disabled: !hasData,
tooltip: !hasData ? 'No data to export' : undefined,
skin: 'standard'
};