ButtonElement Interface
Button
objects expose the HTMLButtonElement
HTML5 (or HTMLButtonElement
HTML 4) interface, which provides properties and methods (beyond the element object interface they also have available to them by inheritance) for manipulating the layout and presentation of button elements.
Extends
Constructors
Code new ButtonElement() #
ButtonElement();
Methods
Code void setCustomValidity(String error) #
void setCustomValidity(String error);
Fields
Code bool autofocus #
bool autofocus;
Code bool disabled #
bool disabled;
Code final FormElement form #
The form that this button is associated with. If the button is a descendant of a form element, then this attribute is the ID of that form element.
If the button is not a descendant of a form element, then:
final FormElement form;
Code String type #
Indicates the behavior of the button. This is an enumerated attribute with the following possible values:
submit
: The button submits the form. This is the default value if the attribute is not specified, HTML5 or if it is dynamically changed to an empty or invalid value.reset
: The button resets the form.button
: The button does nothing.
String type;
Code final String validationMessage #
final String validationMessage;
Code final ValidityState validity #
final ValidityState validity;
Code final bool willValidate #
final bool willValidate;
This page includes content from the
Mozilla Foundation that is graciously
licensed under a
Creative Commons: Attribution-Sharealike license.
Mozilla has no other association with Dart or dartlang.org. We
encourage you to improve the web by
contributing to
The Mozilla Developer Network.