OptionalbindingA binding to use with this Element.
OptionalclassThe class attribute of this Element's HTMLElement.
OptionaldomThe HTMLElement to create this Element with. If not provided this Element will create one.
OptionalenabledSets whether it is possible to interact with this Element and its children.
OptionalerrorSets whether the Element is in an error state.
OptionalheightSets the initial height of the Element.
OptionalhiddenSets whether this Element is hidden. Defaults to false.
OptionaliconThe CSS code for an icon for the button. e.g. 'E401' (notice we omit the '\' character). Defaults to ''.
OptionalidThe id attribute of this Element's HTMLElement.
OptionalignoreIf true, this Element will ignore its parent's enabled value when determining whether this element is enabled. Defaults to false.
OptionalisSets whether this Element is at the root of the hierarchy.
OptionallinkLinks the observer attribute at the path location in the given observer to this Element.
OptionalonIf provided and the Element is changeable, this function will be called each time the element value is changed.
OptionalonIf provided and the Element is clickable, this function will be called each time the element is clicked.
OptionalonIf provided and the Element is removable, this function will be called each time the element is removed.
OptionalparentSets the parent Element.
OptionalreadWhether this Element is read only or not. Defaults to false.
OptionalsizeSets the 'size' type of the button. Can be 'small' or null. Defaults to null.
OptionalstyleSets an initial value for Element.dom.style.
OptionaltabSets the tabIndex of the Element.
OptionaltextSets the text of the button. Defaults to ''.
OptionalunsafeIf true, the innerHTML property will be
used to set the text. Otherwise, textContent
will be used instead. Defaults to false.
OptionalwidthSets the initial width of the Element.
The arguments for the Button constructor.