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})
Overload accessor: $1, $2
no setter
checkValidity bool Function()
getter/setter pair
disabled bool
MDN Reference
getter/setter pair
form HTMLFormElement?
Retrieves a reference to the form that the object is embedded in.
no setter
formAction String
Overrides the action attribute (where the data on a form is sent) on the parent form element.
getter/setter pair
formEnctype String
Used to override the encoding (formEnctype attribute) specified on the form element.
getter/setter pair
formMethod String
Overrides the submit method attribute previously specified on a form element.
getter/setter pair
formNoValidate bool
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
Overrides the target attribute on a form element.
getter/setter pair
labels NodeListOf<HTMLLabelElement>
MDN Reference
no setter
name String
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})
Overload accessor: $1, $2
no setter
reportValidity bool Function()
getter/setter pair
setCustomValidity ↔ void Function(String)
getter/setter pair
type TypeOptions
Gets the classification and default behavior of the button.
getter/setter pair
validationMessage String
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
Returns a ValidityState object that represents the validity states of an element.
no setter
value String
Sets or retrieves the default or selected value of the control.
getter/setter pair
willValidate bool
Returns whether an element will successfully validate based on forms validation rules and constraints.
no setter