Skip to main content

Interface: ButtonWithAlertDialogProps

Button With Alert Dialog Component

  <ButtonWithDialog
onConfirm={onDisable}
heading="Disable Plugin"
dialogMessage="Are you sure you want to disable this plugin?"
onConfirmLabel="Disable"
disabled={isDisabled}
loading={isLoading}
destructive>
Disable
</ButtonWithDialog>

Properties​

destructive​

• Optional destructive: boolean

Is Destructive Action?


dialogMessage​

• dialogMessage: string

Dialog Message


disabled​

• Optional disabled: boolean

Is Disabled?


heading​

• heading: string

Dialog Heading


loading​

• Optional loading: boolean

Is Loading?


onConfirm​

• onConfirm: (e?: MouseEvent<HTMLElement, MouseEvent>) => void

Type declaration​

▸ (e?): void

Function Callback onConfirm

Parameters​
NameType
e?MouseEvent<HTMLElement, MouseEvent>
Returns​

void


onConfirmLabel​

• Optional onConfirmLabel: string

Label for Confirm Button. Defaults to Confirm


onDismissLabel​

• Optional onDismissLabel: string

Label for Dismiss Button. Defaults to Cancel