Initializer
Label(String text = "", String? forControl = null, String? form = 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 = ..., {<InlineElement|{InlineElement*}|Snippet<InlineElement>|Null>*} children = ...)
Parameters:
  • text = ""
  • forControl = null

    Specifies which form control a label is bound to.

  • form = null

    Specifies one or more forms the label belongs to.

  • 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 BaseElement.attributes ultimately refines Node.attributes
childrenSource Codeshared actual {<InlineElement|{InlineElement*}|Snippet<InlineElement>|Null>*} children
forControlSource Codeshared String? forControl

Specifies which form control a label is bound to.

formSource Codeshared String? form

Specifies one or more forms the label belongs to.

tagSource Codeshared actual Tag tag

The tag name and type.

Refines Node.tag
textSource Codeshared actual String text
Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Node
Attributes inherited from: ParentNode<Child>
Attributes inherited from: TextNode
Inherited Methods
Methods inherited from: Object