Initializer
Button(String text = "", ButtonType type = ..., String? name = null, Boolean? autoFocus = null, Boolean? disabled = null, String? form = null, String? valueOf = null, String? id = null, CssClass classNames = [], String? style = null, String? accessKey = null, String? contextMenu = null, TextDirection? dir = null, Boolean? draggable = null, DropZone? dropZone = null, Boolean? inert = null, Boolean? hidden = null, String? lang = null, Boolean? spellcheck = null, Integer? tabIndex = null, String? title = null, Boolean? translate = null, Aria? aria = null, NonstandardAttributes nonstandardAttributes = ..., DataContainer data = ..., {String|InlineElement|{String|InlineElement*}|Snippet<InlineElement>|Null*} children = ...)
Parameters:
  • text = ""
  • type = button

    Specifies the type of button.

  • name = null
  • autoFocus = null
  • disabled = null
  • form = null
  • valueOf = null
  • id = null
  • classNames = []
  • style = null
  • accessKey = null
  • contextMenu = null
  • dir = null
  • draggable = null
  • dropZone = null
  • inert = null
  • hidden = null
  • lang = null
  • spellcheck = null
  • tabIndex = null
  • title = null
  • translate = null
  • aria = null
  • nonstandardAttributes = empty
  • data = empty
  • children = {}
Attributes
attributesSource Codeshared actual <String->Object>[] attributes
Refines FormElement.attributes ultimately refines Node.attributes
childrenSource Codeshared actual {String|InlineElement|{String|InlineElement*}|Snippet<InlineElement>|Null*} children
tagSource Codeshared actual Tag tag

The tag name and type.

Refines Node.tag
textSource Codeshared actual String text
typeSource Codeshared ButtonType type

Specifies the type of button.

Inherited Attributes
Attributes inherited from: BaseElement
Attributes inherited from: Element
Attributes inherited from: FormElement
Attributes inherited from: Object
Attributes inherited from: StyledElement
Attributes inherited from: Node
Attributes inherited from: ParentNode<Child>
Attributes inherited from: TextNode
Inherited Methods
Methods inherited from: Object