Skip to content
PHP Ecosystem
Explore

ButtonCommand

API reference › HTML › Form › Values › ButtonCommand

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

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

Experimental HTML attribute. Availability and behavior may vary across browsers.

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

CaseValueDescription
CLOSE'close'Represents the close token. Closes the targeted <dialog> element.
HIDE_POPOVER'hide-popover'Represents the hide-popover token. Hides a showing popover element.
REQUEST_CLOSE'request-close'Represents the request-close token. Triggers a cancel event on the targeted <dialog>, allowing preventDefault() to block closing.
SHOW_MODAL'show-modal'Represents the show-modal token. Shows the targeted <dialog> element as a modal.
SHOW_POPOVER'show-popover'Represents the show-popover token. Shows a hidden popover element.
TOGGLE_POPOVER'toggle-popover'Represents the toggle-popover token. Toggles the visibility of the targeted popover element.