@spartanfx/react v1.2.2
@spartanfx/react / index / IConfirmOptions
Interface: IConfirmOptions
Defines the configuration options for a confirm dialog instance.
Properties
Required
| Property | Type | Description |
|---|
message | string | Main message displayed in the dialog. |
onConfirm | (comment?, additionalFieldsValue?) => void | Callback executed when the user confirms. |
Options
| Property | Type | Description |
|---|
additionalFields? | IFieldConfig[] | Additional fields to display in the dialog before confirmation. |
commentType? | "none" | "mandatory" | "optional" | Comment input configuration: mandatory, optional, or none. |
confirmButtonLabel? | string | Optional label for the confirm button Default: Ok |
rejectButtonLabel? | string | Optional label for the reject button Default: Cancel |
title? | string | Optional dialog title. Defaults to "Confirm". |
Events & callbacks
| Property | Type | Description |
|---|
onReject? | () => void | Optional callback executed when the user rejects. |
Advanced & escape hatches
| Property | Type | Description |
|---|
commentOptions? | Partial<ITextFieldProps> | Optional configuration props for the comment TextField. |