Skip to content
PHP Ecosystem
Explore

ButtonType

API reference › HTML › Form › Values › ButtonType

enumUIAwesome\Html\Form\Values\ButtonType
Backed bystring
Sourcesrc/Form/Values/ButtonType.php

Represents values for the HTML type attribute of the <button> element.

See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#type.

CaseValueDescription
BUTTON'button'Represents the button token. The button has no default behavior, and does nothing when pressed by default.
RESET'reset'Represents the reset token. The button resets all the controls to their initial values.
SUBMIT'submit'Represents the submit token. The button submits the form data to the server. This is the default if the attribute is not specified for buttons associated with a <form>.