CommandEvent

open class CommandEvent(val type: EventType<CommandEvent>, init: CommandEventInit = definedExternally) : Event(source)

The CommandEvent interface represents an event notifying the user when a HTMLButtonElement element with valid HTMLButtonElement.commandForElement and HTMLButtonElement.command attributes is about to invoke an interactive element.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<CommandEvent>, init: CommandEventInit = definedExternally)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The command read-only property of the CommandEvent interface returns a string containing the value of the HTMLButtonElement.command property at the time the event was dispatched.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The source read-only property of the CommandEvent interface returns an EventTarget representing the control that invoked the given command.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val type: EventType<CommandEvent>

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard