Skip to content

ConfirmationButton.onClick method

ConfirmationButton › onClick

Official

Sets the click event callback for the confirmation button. The modal is auto-closed after the click unless the handler returns a truthy value (or a promise that resolves to one).

Signature:

onClick(handler: (evt: MouseEvent) => unknown): this

Parameters:

Parameter Type Description
handler (evt: MouseEvent) => unknown

Returns: this

Since: 1.13.0