Skip to content

ConfirmationButton.setForm method

ConfirmationButton › setForm

Unofficial

Makes the button submit the given form and prevents its click from closing the modal.

Signature:

setForm(formEl: HTMLFormElement): this

Parameters:

ParameterTypeDescription
formElHTMLFormElementThe form to submit, identified by its id.

Returns: this — The confirmation button.