HTMLButtonElement$Typings extension

on

Properties

addEventListener → ({void Function<K$>(HTMLElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Overload accessor: $1, $2
no setter
checkValidity bool Function()

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

getter/setter pair
disabled bool

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

MDN Reference
getter/setter pair
form HTMLFormElement?

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Retrieves a reference to the form that the object is embedded in.
no setter
formAction String

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Overrides the action attribute (where the data on a form is sent) on the parent form element.
getter/setter pair
formEnctype String

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Used to override the encoding (formEnctype attribute) specified on the form element.
getter/setter pair
formMethod String

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Overrides the submit method attribute previously specified on a form element.
getter/setter pair
formNoValidate bool

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
getter/setter pair
formTarget String

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Overrides the target attribute on a form element.
getter/setter pair
labels NodeListOf<HTMLLabelElement>

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

MDN Reference
no setter
name String

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Sets or retrieves the name of the object.
getter/setter pair
removeEventListener → ({void Function<K$>(HTMLElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Overload accessor: $1, $2
no setter
reportValidity bool Function()

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

getter/setter pair
setCustomValidity ↔ void Function(String)

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

getter/setter pair
type TypeOptions

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Gets the classification and default behavior of the button.
getter/setter pair
validationMessage String

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
no setter
validity ValidityState

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Returns a ValidityState object that represents the validity states of an element.
no setter
value String

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Sets or retrieves the default or selected value of the control.
getter/setter pair
willValidate bool

Available on HTMLButtonElement, provided by the HTMLButtonElement$Typings extension

Returns whether an element will successfully validate based on forms validation rules and constraints.
no setter