Initializer
A(String text = "", String href = ..., String? target = null, String? download = null, String? hrefLang = null, String? rel = null, String? type = 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 = ""
  • href = "#"

    Specifies the URL of the page the link goes to.

  • target = null

    If present, must be a valid browsing context name or keyword. It gives the name of the browsing context that will be used.

  • download = null

    Indicates that the author intends the hyperlink to be used for downloading a resource. When present it specifies the default file name that the author recommends for use in labeling the resource in a local file system.

  • hrefLang = null

    If present, gives the language of the linked resource. It is purely advisory.

  • rel = null

    Specifies the relationship between the current document and the linked document.

  • type = null

    If present, gives the MIME type of the linked resource. It is purely advisory.

  • 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 = empty
Attributes
attributesSource Codeshared actual <String->Object>[] attributes
Refines BaseElement.attributes ultimately refines Node.attributes
childrenSource Codeshared actual {String|InlineElement|{String|InlineElement*}|Snippet<InlineElement>|Null*} children
downloadSource Codeshared String? download

Indicates that the author intends the hyperlink to be used for downloading a resource. When present it specifies the default file name that the author recommends for use in labeling the resource in a local file system.

hrefSource Codeshared String href

Specifies the URL of the page the link goes to.

hrefLangSource Codeshared String? hrefLang

If present, gives the language of the linked resource. It is purely advisory.

relSource Codeshared String? rel

Specifies the relationship between the current document and the linked document.

tagSource Codeshared actual Tag tag

The tag name and type.

Refines Node.tag
targetSource Codeshared String? target

If present, must be a valid browsing context name or keyword. It gives the name of the browsing context that will be used.

textSource Codeshared actual String text
typeSource Codeshared String? type

If present, gives the MIME type of the linked resource. It is purely advisory.

Inherited Attributes
Attributes inherited from: BaseElement
Attributes inherited from: Element
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