Represents base class for all HTML elements and defines global attributes.
Initializer |
Element(String tagName, Attribute<String> id = null, Attribute<String> clazz = null, Attribute<String> accessKey = null, Attribute<Boolean> contentEditable = null, Attribute<String> contextMenu = null, Attribute<Direction> dir = null, Attribute<Boolean> draggable = null, Attribute<DropZone> dropZone = null, Attribute<Boolean> hidden = null, Attribute<String> lang = null, Attribute<Boolean> spellcheck = null, Attribute<String> style = null, Attribute<Integer> tabIndex = null, Attribute<String> title = null, Attribute<Boolean> translate = null, Attributes attributes = [], {Content<Node>*} children = []) Parameters:
|
Attributes | |
accessKey | Source Codeshared Attribute<String> accessKey Attribute provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout. |
clazz | Source Codeshared Attribute<String> clazz Attribute defines a space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors. |
contentEditable | Source Codeshared Attribute<Boolean> contentEditable Attribute indicates if the element should be editable by the user. If so, the browser modifies its widget to allow editing. |
contextMenu | Source Codeshared Attribute<String> contextMenu Attribute defines id of an menu element to use as the contextual menu for this element |
dir | Source Codeshared Attribute<Direction> dir Attribute indicates the directionality of the element's text. |
draggable | Source Codeshared Attribute<Boolean> draggable Attribute indicates whether the element can be dragged. |
dropZone | Source Codeshared Attribute<DropZone> dropZone Attribute indicates what types of content can be dropped on an element. |
Source Codeshared Attribute<Boolean> hidden Attribute indicates that the element is not yet, or is no longer, relevant. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown. | |
id | Source Codeshared Attribute<String> id Attribute defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS). |
lang | Source Codeshared Attribute<String> lang Attribute specifies the primary language for the element's contents and for any of the element's attributes that contain text. Its value must be a valid BCP 47 language tag, or the empty string. Setting the attribute to the empty string indicates that the primary language is unknown. |
spellcheck | Source Codeshared Attribute<Boolean> spellcheck Attribute defines whether the element may be checked for spelling errors. |
style | Source Codeshared Attribute<String> style Attribute contains CSS styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. |
tabIndex | Source Codeshared Attribute<Integer> tabIndex Attribute indicates if the element can take input focus (is focusable), if it should participate to sequential keyboard navigation, and if so, at what position. |
tagName | Source Codeshared String tagName The name of the tag for this element. |
title | Source Codeshared Attribute<String> title Attribute contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip. |
translate | Source Codeshared Attribute<Boolean> translate Attribute that is used to specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged. |
Inherited Attributes |
Attributes inherited from: Node |
Attributes inherited from: Object |