AlertingDialogActionBar()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
The alerting dialog’s action bar (documentation link, Delete in edit mode, Cancel, submit), connected to the dialog’s state.
Renders DefaultAutomationDialogActionBar() with the props of useAlertingDialogActionBarProps(); every override prop replaces the hook’s value wholesale. The block does not own the submit: pass submit and isSaving from one useAlertSubmit() instance, so an Enter handler elsewhere in the shell shares its in-flight guard. Renders nothing while useAlertingDialogContext().isLoading is true.
export declare function AlertingDialogActionBar(props: IAlertingDialogActionBarBlockProps): ReactElement;
Parameters
Parameter | Type | Description |
|---|---|---|
props |
Returns
ReactElement
Example
const { submit, isSaving } = useAlertSubmit(props);
<AlertingDialogActionBar onCancel={props.onCancel} onSubmit={() => void submit()} isSaving={isSaving} />;