trait Attrs[Builder, Output <: FragT, FragT] extends InputAttrs[Builder, Output, FragT] with ClipboardEventAttrs[Builder, Output, FragT] with MediaEventAttrs[Builder, Output, FragT] with MiscellaneousEventAttrs[Builder, Output, FragT] with KeyboardEventAttrs[Builder, Output, FragT] with MouseEventAttrs[Builder, Output, FragT] with WindowEventAttrs[Builder, Output, FragT] with FormEventAttrs[Builder, Output, FragT]
Trait containing the contents of the Attrs module, so they can be mixed in to other objects if needed. This should contain "all" attributes and mix in other traits (defined above) as needed to get full coverage.
- Alphabetic
- By Inheritance
- Attrs
- FormEventAttrs
- WindowEventAttrs
- MouseEventAttrs
- KeyboardEventAttrs
- MiscellaneousEventAttrs
- MediaEventAttrs
- SharedEventAttrs
- ClipboardEventAttrs
- InputAttrs
- GlobalAttrs
- Util
- LowPriUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type ConcreteHtmlTag[T <: Output] <: TypedTag[Builder, T, FragT]
- Definition Classes
- Util
- class DataAttribute extends Dynamic
- Definition Classes
- GlobalAttrs
- implicit class SeqNode[A] extends Modifier[Builder]
Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.
Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.
- Definition Classes
- Util
Abstract Value Members
- implicit abstract def GeneratorFrag[A](xs: Generator[A])(implicit ev: (A) => Frag[Builder, FragT]): Frag[Builder, FragT]
Renders an Seq of FragT into a single FragT
Renders an Seq of FragT into a single FragT
- Definition Classes
- LowPriUtil
- implicit abstract def SeqFrag[A](xs: Seq[A])(implicit ev: (A) => Frag[Builder, FragT]): Frag[Builder, FragT]
Renders an Seq of FragT into a single FragT
Renders an Seq of FragT into a single FragT
- Definition Classes
- LowPriUtil
- implicit abstract def UnitFrag(u: Unit): Frag[Builder, FragT]
Lets you put Unit into a scalatags tree, as a no-op.
Lets you put Unit into a scalatags tree, as a no-op.
- Definition Classes
- LowPriUtil
- abstract def makeAbstractTypedTag[T <: Output](tag: String, void: Boolean, namespaceConfig: Namespace): ConcreteHtmlTag[T]
- Definition Classes
- Util
- implicit abstract def stringAttrX: AttrValue[Builder, String]
- Attributes
- protected[this]
- Definition Classes
- Util
- implicit abstract def stringPixelStyleX: PixelStyleValue[Builder, String]
- Attributes
- protected[this]
- Definition Classes
- Util
- implicit abstract def stringStyleX: StyleValue[Builder, String]
- Attributes
- protected[this]
- Definition Classes
- Util
- abstract def tag(s: String, void: Boolean = false): TypedTag[Builder, Output, FragT]
- Definition Classes
- Util
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit def ArrayFrag[A](xs: Array[A])(implicit ev: (A) => Frag[Builder, FragT]): Frag[Builder, FragT]
Renders an Seq of FragT into a single FragT
Renders an Seq of FragT into a single FragT
- Definition Classes
- LowPriUtil
- implicit def ArrayNode[A](xs: Array[A])(implicit ev: (A) => Modifier[Builder]): SeqNode[A]
Allows you to modify a ConcreteHtmlTag by adding an Array containing other nest-able objects to its list of children.
Allows you to modify a ConcreteHtmlTag by adding an Array containing other nest-able objects to its list of children.
- Definition Classes
- Util
- implicit def OptionFrag[A](xs: Option[A])(implicit ev: (A) => Frag[Builder, FragT]): Frag[Builder, FragT]
Renders an Option of FragT into a single FragT
Renders an Option of FragT into a single FragT
- Definition Classes
- LowPriUtil
- implicit def OptionNode[A](xs: Option[A])(implicit ev: (A) => Modifier[Builder]): SeqNode[A]
Allows you to modify a ConcreteHtmlTag by adding an Option containing other nest-able objects to its list of children.
Allows you to modify a ConcreteHtmlTag by adding an Option containing other nest-able objects to its list of children.
- Definition Classes
- Util
- lazy val accept: Attr
If the value of the type attribute is file, this attribute indicates the types of files that the server accepts; otherwise it is ignored.
If the value of the type attribute is file, this attribute indicates the types of files that the server accepts; otherwise it is ignored.
MDN
- lazy val accesskey: Attr
Specifies a shortcut key to activate/focus an element
Specifies a shortcut key to activate/focus an element
- Definition Classes
- GlobalAttrs
- lazy val action: Attr
The URI of a program that processes the information submitted via the form.
The URI of a program that processes the information submitted via the form. This value can be overridden by a formaction attribute on a button or input element.
MDN
- Definition Classes
- InputAttrs
- lazy val alt: Attr
This attribute defines the alternative text describing the image.
This attribute defines the alternative text describing the image. Users will see this displayed if the image URL is wrong, the image is not in one of the supported formats, or until the image is downloaded.
MDN
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attr(s: String, ns: Namespace = null, raw: Boolean = false): Attr
Constructs an Attr attribute object from a string; can be used inline:
- lazy val autocomplete: Attr
This attribute indicates whether the value of the control can be automatically completed by the browser.
This attribute indicates whether the value of the control can be automatically completed by the browser. This attribute is ignored if the value of the type attribute is hidden, checkbox, radio, file, or a button type (button, submit, reset, image).
Possible values are "off" and "on"
MDN
- Definition Classes
- InputAttrs
- lazy val autofocus: AttrPair[Builder, String]
This Boolean attribute lets you specify that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control.
This Boolean attribute lets you specify that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have the autofocus attribute, which is a Boolean. It cannot be applied if the type attribute is set to hidden (that is, you cannot automatically set focus to a hidden control).
MDN
- Definition Classes
- InputAttrs
- lazy val charset: Attr
Declares the character encoding of the page or script.
Declares the character encoding of the page or script. Used on meta and script elements.
MDN
- lazy val checked: AttrPair[Builder, String]
When the value of the type attribute is radio or checkbox, the presence of this Boolean attribute indicates that the control is selected by default; otherwise it is ignored.
When the value of the type attribute is radio or checkbox, the presence of this Boolean attribute indicates that the control is selected by default; otherwise it is ignored.
MDN
- Definition Classes
- InputAttrs
- lazy val class: Attr
This attribute is a space-separated list of the classes of the element.
This attribute is 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 or functions like the DOM method document.getElementsByClassName. You can use cls as an alias for this attribute so you don't have to backtick-escape this attribute.
MDN
- Definition Classes
- GlobalAttrs
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- lazy val cls: Attr
Shorthand for the
class
attributeShorthand for the
class
attribute- Definition Classes
- GlobalAttrs
- lazy val cols: Attr
The visible width of the text control, in average character widths.
The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is 20 (HTML5).
MDN
- lazy val colspan: Attr
This attribute contains a non-negative integer value that indicates for how many columns the cell extends.
This attribute contains a non-negative integer value that indicates for how many columns the cell extends. Its default value is 1; if its value is set to 0, it extends until the end of the
, even if implicitly defined, that the cell belongs to. Values higher than 1000 will be considered as incorrect and will be set to the default value (1). MDN - lazy val content: Attr
This attribute gives the value associated with the http-equiv or name attribute, depending of the context.
This attribute gives the value associated with the http-equiv or name attribute, depending of the context.
MDN
- lazy val contenteditable: Attr
- Definition Classes
- GlobalAttrs
- lazy val contextmenu: Attr
- Definition Classes
- GlobalAttrs
- def css(s: String): Style
Constructs a CSS Style from a string, can be used inline
- def data(suffix: String): Attr
- Definition Classes
- GlobalAttrs
- lazy val defer: AttrPair[Builder, String]
This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing DOMContentLoaded
This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing DOMContentLoaded
MDN
- lazy val dir: Attr
Specifies the text direction for the content in an element.
Specifies the text direction for the content in an element. The valid values are:
-
ltr
Default. Left-to-right text direction-
rtl
Right-to-left text direction-
auto
Let the browser figure out the text direction, based on the content, (only recommended if the text direction is unknown)- Definition Classes
- GlobalAttrs
- lazy val disabled: AttrPair[Builder, String]
This Boolean attribute indicates that the form control is not available for interaction.
This Boolean attribute indicates that the form control is not available for interaction. In particular, the click event will not be dispatched on disabled controls. Also, a disabled control's value isn't submitted with the form.
This attribute is ignored if the value of the type attribute is hidden.
MDN
- lazy val draggable: AttrPair[Builder, String]
A Boolean attribute that specifies whether an element is draggable or not
A Boolean attribute that specifies whether an element is draggable or not
- Definition Classes
- GlobalAttrs
- lazy val dropzone: Attr
Specifies whether the dragged data is copied, moved, or linked, when dropped
Specifies whether the dragged data is copied, moved, or linked, when dropped
- Definition Classes
- GlobalAttrs
- lazy val enctype: Attr
The
enctype
attribute provides the encoding type of the form when it is submitted (for forms with a method of "POST").The
enctype
attribute provides the encoding type of the form when it is submitted (for forms with a method of "POST").- Definition Classes
- InputAttrs
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- lazy val for: Attr
Describes elements which belongs to this one.
Describes elements which belongs to this one. Used on labels and output elements.
MDN
- lazy val formA: Attr
The form attribute specifies one or more forms an
` element belongs to.
The form attribute specifies one or more forms an
` element belongs to.
- Definition Classes
- InputAttrs
- lazy val formaction: Attr
The
formaction
attribute provides the URL that will process the input control when the form is submitted and overrides the defaultaction
attribute of theform
element.The
formaction
attribute provides the URL that will process the input control when the form is submitted and overrides the defaultaction
attribute of theform
element. This should be used only withinput
elements oftype
submit or image.- Definition Classes
- InputAttrs
- lazy val formenctype: Attr
The
formenctype
attribute provides the encoding type of the form when it is submitted (for forms with a method of "POST") and overrides the defaultenctype
attribute of theform
element.The
formenctype
attribute provides the encoding type of the form when it is submitted (for forms with a method of "POST") and overrides the defaultenctype
attribute of theform
element. This should be used only with theinput
elements oftype
"submit" or "image"- Definition Classes
- InputAttrs
- lazy val formmethod: Attr
The
formmethod
attribute specifies the HTTP Method the form should use when it is submitted and overrides the defaultmethod
attribute of theform
element.The
formmethod
attribute specifies the HTTP Method the form should use when it is submitted and overrides the defaultmethod
attribute of theform
element. This should be used only with theinput
elements oftype
"submit" or "image".- Definition Classes
- InputAttrs
- lazy val formnovalidate: Attr
The
formnovalidate
Boolean attribute specifies that the input of the form should not be validated upon submit and overrides the defaultnovalidate
attribute of theform
.The
formnovalidate
Boolean attribute specifies that the input of the form should not be validated upon submit and overrides the defaultnovalidate
attribute of theform
. This should only be used withinput
elements of oftype
"submit".- Definition Classes
- InputAttrs
- lazy val formtarget: Attr
The
formtarget
provides a name or keyword that indicates where to display the response that is received after submitting the form and overrides thetarget
attribute of themform
element.The
formtarget
provides a name or keyword that indicates where to display the response that is received after submitting the form and overrides thetarget
attribute of themform
element. This should only be used with theinput
elements oftype
"submit" or "image"- Definition Classes
- InputAttrs
- def frag(frags: Frag[Builder, FragT]*): Frag[Builder, FragT]
- Definition Classes
- Util
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- lazy val heightA: Attr
The
height
attribute specifies the height of aninput
element oftype
"image".The
height
attribute specifies the height of aninput
element oftype
"image".- Definition Classes
- InputAttrs
- lazy val hidden: AttrPair[Builder, String]
Specifies that an element is not yet, or is no longer, relevant and consequently hidden from view of the user.
Specifies that an element is not yet, or is no longer, relevant and consequently hidden from view of the user.
- Definition Classes
- GlobalAttrs
- lazy val high: Attr
For use in <meter> tags.
For use in <meter> tags.
- See also
https://css-tricks.com/html5-meter-element/
- lazy val href: Attr
This is the single required attribute for anchors defining a hypertext source link.
This is the single required attribute for anchors defining a hypertext source link. It indicates the link target, either a URL or a URL fragment. A URL fragment is a name preceded by a hash mark (#), which specifies an internal target location (an ID) within the current document. URLs are not restricted to Web (HTTP)-based documents. URLs might use any protocol supported by the browser. For example, file, ftp, and mailto work in most user agents.
MDN
- lazy val httpEquiv: Attr
This enumerated attribute defines the pragma that can alter servers and user-agents behavior.
This enumerated attribute defines the pragma that can alter servers and user-agents behavior. The value of the pragma is defined using the content attribute and can be one of the following:
- content-language
- content-type
- default-style
- refresh
- set-cookie
MDN
- lazy val id: Attr
This attribute defines a unique identifier (ID) which must be unique in the whole document.
This 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).
MDN
- Definition Classes
- GlobalAttrs
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val lang: Attr
This attribute participates in defining the language of the element, the language that non-editable elements are written in or the language that editable elements should be written in.
This attribute participates in defining the language of the element, the language that non-editable elements are written in or the language that editable elements should be written in. The tag contains one single entry value in the format defines in the Tags for Identifying Languages (BCP47) IETF document. If the tag content is the empty string the language is set to unknown; if the tag content is not valid, regarding to BCP47, it is set to invalid.
MDN
- Definition Classes
- GlobalAttrs
- lazy val list: Attr
The list attribute refers to a <datalist> element that contains the options for an input element the presents a select list.
The list attribute refers to a <datalist> element that contains the options for an input element the presents a select list.
- Definition Classes
- InputAttrs
- lazy val low: Attr
For use in <meter> tags.
For use in <meter> tags.
- See also
https://css-tricks.com/html5-meter-element/
- lazy val max: Attr
The max attribute specifies the maximum value for an element of type number, range, date, datetime, datetime-local, month, time, or week.
The max attribute specifies the maximum value for an element of type number, range, date, datetime, datetime-local, month, time, or week.
- Definition Classes
- InputAttrs
- lazy val maxlength: Attr
The maximum allowed length for the input field.
The maximum allowed length for the input field. This attribute forces the input control to accept no more than the allowed number of characters. It does not produce any feedback to the user; you must write Javascript to make that happen.
- Definition Classes
- InputAttrs
- lazy val media: Attr
This attribute specifies the media which the linked resource applies to.
This attribute specifies the media which the linked resource applies to. Its value must be a media query. This attribute is mainly useful when linking to external stylesheets by allowing the user agent to pick the best adapted one for the device it runs on.
- See also
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-media
- lazy val method: Attr
The HTTP method that the browser uses to submit the form.
The HTTP method that the browser uses to submit the form. Possible values are:
- post: Corresponds to the HTTP POST method ; form data are included in the body of the form and sent to the server.
- get: Corresponds to the HTTP GET method; form data are appended to the action attribute URI with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.
This value can be overridden by a formmethod attribute on a button or input element.
MDN
- Definition Classes
- InputAttrs
- lazy val min: Attr
The min attribute specifies the minimum value for an element of type number, range, date, datetime, datetime-local, month, time, or week.
The min attribute specifies the minimum value for an element of type number, range, date, datetime, datetime-local, month, time, or week.
- Definition Classes
- InputAttrs
- lazy val minlength: Attr
The minimum allowed length for the input field.
The minimum allowed length for the input field. This attribute forces the input control to accept no less than the allowed number of characters. It does not produce any feedback to the user; you must write Javascript to make that happen.
- Definition Classes
- InputAttrs
- def modifier(mods: Modifier[Builder]*): Modifier[Builder]
- Definition Classes
- Util
- lazy val multiple: AttrPair[Builder, String]
This Boolean attribute specifies, when present/true, that the user is allowed to enter more than one value for the element for types "email" or "file". It can also be provided to the
This Boolean attribute specifies, when present/true, that the user is allowed to enter more than one value for the element for types "email" or "file". It can also be provided to the
- Definition Classes
- InputAttrs
- lazy val name: Attr
On form elements (input etc.): Name of the element.
On form elements (input etc.): Name of the element. For example used by the server to identify the fields in form submits.
On the meta tag: This attribute defines the name of a document-level metadata. This document-level metadata name is associated with a value, contained by the content attribute.
MDN
- Definition Classes
- InputAttrs
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- lazy val onabort: Attr
Script to be run on abort
Script to be run on abort
- Definition Classes
- MediaEventAttrs
- lazy val onafterprint: Attr
Script to be run after the document is printed
Script to be run after the document is printed
- Definition Classes
- WindowEventAttrs
- lazy val onbeforeprint: Attr
Script to be run before the document is printed
Script to be run before the document is printed
- Definition Classes
- WindowEventAttrs
- lazy val onbeforeunload: Attr
Script to be run when the document is about to be unloaded
Script to be run when the document is about to be unloaded
- Definition Classes
- WindowEventAttrs
- lazy val onblur: Attr
The blur event is raised when an element loses focus.
The blur event is raised when an element loses focus.
MDN
- Definition Classes
- FormEventAttrs
- lazy val oncanplay: Attr
Script to be run when a file is ready to start playing (when it has buffered enough to begin)
Script to be run when a file is ready to start playing (when it has buffered enough to begin)
- Definition Classes
- MediaEventAttrs
- lazy val oncanplaythrough: Attr
Script to be run when a file can be played all the way to the end without pausing for buffering
Script to be run when a file can be played all the way to the end without pausing for buffering
- Definition Classes
- MediaEventAttrs
- lazy val onchange: Attr
The change event is fired for input, select, and textarea elements when a change to the element's value is committed by the user.
The change event is fired for input, select, and textarea elements when a change to the element's value is committed by the user.
MDN
- Definition Classes
- FormEventAttrs
- lazy val onclick: Attr
The click event is raised when the user clicks on an element.
The click event is raised when the user clicks on an element. The click event will occur after the mousedown and mouseup events.
MDN
- Definition Classes
- MouseEventAttrs
- lazy val oncontextmenu: Attr
Script to be run when a context menu is triggered
Script to be run when a context menu is triggered
- Definition Classes
- FormEventAttrs
- lazy val oncopy: Attr
Fires when the user copies the content of an element
Fires when the user copies the content of an element
- Definition Classes
- ClipboardEventAttrs
- lazy val oncuechange: Attr
Script to be run when the cue changes in a <track> element
Script to be run when the cue changes in a <track> element
- Definition Classes
- MediaEventAttrs
- lazy val oncut: Attr
Fires when the user cuts the content of an element
Fires when the user cuts the content of an element
- Definition Classes
- ClipboardEventAttrs
- lazy val ondblclick: Attr
The dblclick event is fired when a pointing device button (usually a mouse button) is clicked twice on a single element.
The dblclick event is fired when a pointing device button (usually a mouse button) is clicked twice on a single element.
MDN
- Definition Classes
- MouseEventAttrs
- val ondrag: Attr
Script to be run when an element is dragged
Script to be run when an element is dragged
- Definition Classes
- MouseEventAttrs
- lazy val ondragend: Attr
Script to be run at the end of a drag operation
Script to be run at the end of a drag operation
- Definition Classes
- MouseEventAttrs
- lazy val ondragenter: Attr
Script to be run when an element has been dragged to a valid drop target
Script to be run when an element has been dragged to a valid drop target
- Definition Classes
- MouseEventAttrs
- lazy val ondragleave: Attr
Script to be run when an element leaves a valid drop target
Script to be run when an element leaves a valid drop target
- Definition Classes
- MouseEventAttrs
- lazy val ondragover: Attr
Script to be run when an element is being dragged over a valid drop target
Script to be run when an element is being dragged over a valid drop target
- Definition Classes
- MouseEventAttrs
- lazy val ondragstart: Attr
Script to be run at the start of a drag operation
Script to be run at the start of a drag operation
- Definition Classes
- MouseEventAttrs
- lazy val ondrop: Attr
Script to be run when dragged element is being dropped
Script to be run when dragged element is being dropped
- Definition Classes
- MouseEventAttrs
- lazy val ondurationchange: Attr
Script to be run when the length of the media changes
Script to be run when the length of the media changes
- Definition Classes
- MediaEventAttrs
- lazy val onemptied: Attr
Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects)
Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects)
- Definition Classes
- MediaEventAttrs
- lazy val onended: Attr
Script to be run when the media has reach the end (a useful event for messages like "thanks for listening")
Script to be run when the media has reach the end (a useful event for messages like "thanks for listening")
- Definition Classes
- MediaEventAttrs
- lazy val onerror: Attr
Script to be run when an error occurs when the file is being loaded
Script to be run when an error occurs when the file is being loaded
- Definition Classes
- SharedEventAttrs
- lazy val onfocus: Attr
The focus event is raised when the user sets focus on the given element.
The focus event is raised when the user sets focus on the given element.
MDN
- Definition Classes
- FormEventAttrs
- lazy val onhashchange: Attr
Script to be run when there has been changes to the anchor part of the a URL
Script to be run when there has been changes to the anchor part of the a URL
- Definition Classes
- WindowEventAttrs
- lazy val oninput: Attr
Script to be run when an element gets user input
Script to be run when an element gets user input
- Definition Classes
- FormEventAttrs
- lazy val oninvalid: Attr
Script to be run when an element is invalid
Script to be run when an element is invalid
- Definition Classes
- FormEventAttrs
- lazy val onkeydown: Attr
The keydown event is raised when the user presses a keyboard key.
The keydown event is raised when the user presses a keyboard key.
MDN
- Definition Classes
- KeyboardEventAttrs
- lazy val onkeypress: Attr
The keypress event should be raised when the user presses a key on the keyboard.
The keypress event should be raised when the user presses a key on the keyboard. However, not all browsers fire keypress events for certain keys.
Webkit-based browsers (Google Chrome and Safari, for example) do not fire keypress events on the arrow keys. Firefox does not fire keypress events on modifier keys like SHIFT.
MDN
- Definition Classes
- KeyboardEventAttrs
- lazy val onkeyup: Attr
The keyup event is raised when the user releases a key that's been pressed.
The keyup event is raised when the user releases a key that's been pressed.
MDN
- Definition Classes
- KeyboardEventAttrs
- lazy val onload: Attr
The load event fires at the end of the document loading process.
The load event fires at the end of the document loading process. At this point, all of the objects in the document are in the DOM, and all the images and sub-frames have finished loading.
MDN
- Definition Classes
- WindowEventAttrs
- lazy val onloadeddata: Attr
Script to be run when media data is loaded
Script to be run when media data is loaded
- Definition Classes
- MediaEventAttrs
- lazy val onloadedmetadata: Attr
Script to be run when meta data (like dimensions and duration) are loaded
Script to be run when meta data (like dimensions and duration) are loaded
- Definition Classes
- MediaEventAttrs
- lazy val onloadstart: Attr
Script to be run just as the file begins to load before anything is actually loaded
Script to be run just as the file begins to load before anything is actually loaded
- Definition Classes
- MediaEventAttrs
- lazy val onmessage: Attr
Script to be run when the message is triggered
Script to be run when the message is triggered
- Definition Classes
- WindowEventAttrs
- lazy val onmousedown: Attr
The mousedown event is raised when the user presses the mouse button.
The mousedown event is raised when the user presses the mouse button.
MDN
- Definition Classes
- MouseEventAttrs
- lazy val onmousemove: Attr
The mousemove event is raised when the user moves the mouse.
The mousemove event is raised when the user moves the mouse.
MDN
- Definition Classes
- MouseEventAttrs
- lazy val onmouseout: Attr
The mouseout event is raised when the mouse leaves an element (e.g, when the mouse moves off of an image in the web page, the mouseout event is raised for that image element).
The mouseout event is raised when the mouse leaves an element (e.g, when the mouse moves off of an image in the web page, the mouseout event is raised for that image element).
MDN
- Definition Classes
- MouseEventAttrs
- lazy val onmouseover: Attr
The mouseover event is raised when the user moves the mouse over a particular element.
The mouseover event is raised when the user moves the mouse over a particular element.
MDN
- Definition Classes
- MouseEventAttrs
- lazy val onmouseup: Attr
The mouseup event is raised when the user releases the mouse button.
The mouseup event is raised when the user releases the mouse button.
MDN
- Definition Classes
- MouseEventAttrs
- lazy val onoffline: Attr
Script to be run when the browser starts to work offline
Script to be run when the browser starts to work offline
- Definition Classes
- WindowEventAttrs
- lazy val ononline: Attr
Script to be run when the browser starts to work online
Script to be run when the browser starts to work online
- Definition Classes
- WindowEventAttrs
- lazy val onpagehide: Attr
Script to be run when a user navigates away from a page
Script to be run when a user navigates away from a page
- Definition Classes
- WindowEventAttrs
- lazy val onpageshow: Attr
Script to be run when a user navigates to a page
Script to be run when a user navigates to a page
- Definition Classes
- WindowEventAttrs
- lazy val onpaste: Attr
Fires when the user pastes some content in an element
Fires when the user pastes some content in an element
- Definition Classes
- ClipboardEventAttrs
- lazy val onpause: Attr
Script to be run when the media is paused either by the user or programmatically
Script to be run when the media is paused either by the user or programmatically
- Definition Classes
- MediaEventAttrs
- lazy val onplay: Attr
Script to be run when the media is ready to start playing
Script to be run when the media is ready to start playing
- Definition Classes
- MediaEventAttrs
- lazy val onplaying: Attr
Script to be run when the media actually has started playing
Script to be run when the media actually has started playing
- Definition Classes
- MediaEventAttrs
- lazy val onpopstate: Attr
Script to be run when the window's history changes
Script to be run when the window's history changes
- Definition Classes
- WindowEventAttrs
- lazy val onprogress: Attr
Script to be run when the browser is in the process of getting the media data
Script to be run when the browser is in the process of getting the media data
- Definition Classes
- MediaEventAttrs
- lazy val onratechange: Attr
Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode)
Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode)
- Definition Classes
- MediaEventAttrs
- lazy val onreset: Attr
The reset event is fired when a form is reset.
The reset event is fired when a form is reset.
MDN
- Definition Classes
- FormEventAttrs
- lazy val onresize: Attr
Fires when the browser window is resized
Fires when the browser window is resized
- Definition Classes
- WindowEventAttrs
- lazy val onscroll: Attr
Specifies the function to be called when the window is scrolled.
Specifies the function to be called when the window is scrolled.
MDN
- Definition Classes
- MouseEventAttrs
- lazy val onsearch: Attr
Fires when the user writes something in a search field (for <input="search">)
Fires when the user writes something in a search field (for <input="search">)
- Definition Classes
- FormEventAttrs
- lazy val onseeked: Attr
Script to be run when the seeking attribute is set to false indicating that seeking has ended
Script to be run when the seeking attribute is set to false indicating that seeking has ended
- Definition Classes
- MediaEventAttrs
- lazy val onseeking: Attr
Script to be run when the seeking attribute is set to true indicating that seeking is active
Script to be run when the seeking attribute is set to true indicating that seeking is active
- Definition Classes
- MediaEventAttrs
- lazy val onselect: Attr
The select event only fires when text inside a text input or textarea is selected.
The select event only fires when text inside a text input or textarea is selected. The event is fired after the text has been selected.
MDN
- Definition Classes
- FormEventAttrs
- lazy val onshow: Attr
Fires when a <menu> element is shown as a context menu
Fires when a <menu> element is shown as a context menu
- Definition Classes
- MiscellaneousEventAttrs
- lazy val onstalled: Attr
Script to be run when the browser is unable to fetch the media data for whatever reason
Script to be run when the browser is unable to fetch the media data for whatever reason
- Definition Classes
- MediaEventAttrs
- lazy val onstorage: Attr
Script to be run when a Web Storage area is updated
Script to be run when a Web Storage area is updated
- Definition Classes
- WindowEventAttrs
- lazy val onsubmit: Attr
The submit event is raised when the user clicks a submit button in a form (). MDN
The submit event is raised when the user clicks a submit button in a form (). MDN
- Definition Classes
- FormEventAttrs
- lazy val onsuspend: Attr
Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason
Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason
- Definition Classes
- MediaEventAttrs
- lazy val ontimeupdate: Attr
Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media)
Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media)
- Definition Classes
- MediaEventAttrs
- lazy val ontoggle: Attr
Fires when the user opens or closes the <details> element
Fires when the user opens or closes the <details> element
- Definition Classes
- MiscellaneousEventAttrs
- lazy val onunload: Attr
Fires once a page has unloaded (or the browser window has been closed)
Fires once a page has unloaded (or the browser window has been closed)
- Definition Classes
- WindowEventAttrs
- lazy val onvolumechange: Attr
Script to be run each time the volume is changed which (includes setting the volume to "mute")
Script to be run each time the volume is changed which (includes setting the volume to "mute")
- Definition Classes
- MediaEventAttrs
- lazy val onwaiting: Attr
Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data)
Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data)
- Definition Classes
- MediaEventAttrs
- lazy val onwheel: Attr
Fires when the mouse wheel rolls up or down over an element
Fires when the mouse wheel rolls up or down over an element
- Definition Classes
- MouseEventAttrs
- lazy val optimum: Attr
For use in <meter> tags.
For use in <meter> tags.
- See also
https://css-tricks.com/html5-meter-element/
- lazy val pattern: Attr
Specifies a regular expression to validate the input.
Specifies a regular expression to validate the input. The pattern attribute works with the following input types: text, search, url, tel, email, and password. Use the
title
attribute to describe the pattern to the user.- Definition Classes
- InputAttrs
- lazy val placeholder: Attr
A hint to the user of what can be entered in the control.
A hint to the user of what can be entered in the control. The placeholder text must not contain carriage returns or line-feeds. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.
MDN
- Definition Classes
- InputAttrs
- lazy val readonly: AttrPair[Builder, String]
This Boolean attribute indicates that the user cannot modify the value of the control.
This Boolean attribute indicates that the user cannot modify the value of the control. This attribute is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type.
MDN
- Definition Classes
- InputAttrs
- lazy val rel: Attr
This attribute names a relationship of the linked document to the current document.
This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the link types values. The most common use of this attribute is to specify a link to an external style sheet: the rel attribute is set to stylesheet, and the href attribute is set to the URL of an external style sheet to format the page.
MDN
- lazy val required: AttrPair[Builder, String]
This attribute specifies that the user must fill in a value before submitting a form.
This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the type attribute is hidden, image, or a button type (submit, reset, or button). The :optional and :required CSS pseudo-classes will be applied to the field as appropriate.
MDN
- Definition Classes
- InputAttrs
- lazy val role: Attr
The attribute describes the role(s) the current element plays in the context of the document.
The attribute describes the role(s) the current element plays in the context of the document. This can be used, for example, by applications and assistive technologies to determine the purpose of an element. This could allow a user to make informed decisions on which actions may be taken on an element and activate the selected action in a device independent way. It could also be used as a mechanism for annotating portions of a document in a domain specific way (e.g., a legal term taxonomy). Although the role attribute may be used to add semantics to an element, authors should use elements with inherent semantics, such as p, rather than layering semantics on semantically neutral elements, such as div role="paragraph".
See: http://www.w3.org/TR/role-attribute/#s_role_module_attributes
- lazy val rows: Attr
The number of visible text lines for the control.
The number of visible text lines for the control.
MDN
- lazy val rowspan: Attr
This attribute contains a non-negative integer value that indicates for how many rows the cell extends.
This attribute contains a non-negative integer value that indicates for how many rows the cell extends. Its default value is 1; if its value is set to 0, it extends until the end of the table section (,
, , even if implicitly defined, that the cell belongs to. Values higher than 65534 are clipped down to 65534. MDN- lazy val scoped: Attr
For use in <style> tags.
For use in <style> tags.
If this attribute is present, then the style applies only to its parent element. If absent, the style applies to the whole document.
- lazy val selected: AttrPair[Builder, String]
Indicates a selected option in an option list of a
Indicates a selected option in an option list of a
- Definition Classes
- FormEventAttrs
- lazy val size: Attr
The initial size of the control.
The initial size of the control. This value is in pixels unless the value of the type attribute is text or password, in which case, it is an integer number of characters. Starting in HTML5, this attribute applies only when the type attribute is set to text, search, tel, url, email, or password; otherwise it is ignored. In addition, the size must be greater than zero. If you don't specify a size, a default value of 20 is used.
MDN
- Definition Classes
- InputAttrs
- lazy val spellcheck: AttrPair[Builder, String]
This enumerated attribute defines whether the element may be checked for spelling errors.
This enumerated attribute defines whether the element may be checked for spelling errors.
MDN
- Definition Classes
- GlobalAttrs
- lazy val src: Attr
If the value of the type attribute is image, this attribute specifies a URI for the location of an image to display on the graphical submit button; otherwise it is ignored.
If the value of the type attribute is image, this attribute specifies a URI for the location of an image to display on the graphical submit button; otherwise it is ignored.
MDN
- lazy val step: Attr
The step attribute specifies the numeric intervals for an element that should be considered legal for the input. For example, if step is 2 on a number typed then the legal numbers could be -2, 0, 2, 4, 6 etc. The step attribute should be used in conjunction with the min and max attributes to specify the full range and interval of the legal values. The step attribute is applicable to elements of the following types: number, range, date, datetime, datetime-local, month, time and week.
The step attribute specifies the numeric intervals for an element that should be considered legal for the input. For example, if step is 2 on a number typed then the legal numbers could be -2, 0, 2, 4, 6 etc. The step attribute should be used in conjunction with the min and max attributes to specify the full range and interval of the legal values. The step attribute is applicable to elements of the following types: number, range, date, datetime, datetime-local, month, time and week.
- Definition Classes
- InputAttrs
- lazy val style: Attr
This attribute contains CSS styling declarations to be applied to the element.
This 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. This attribute and the style element have mainly the purpose of allowing for quick styling, for example for testing purposes.
MDN
- Definition Classes
- GlobalAttrs
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val tabindex: Attr
This integer 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.
This integer 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. It can takes several values:
- a negative value means that the element should be focusable, but should not be reachable via sequential keyboard navigation; - 0 means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention; - a positive value which means should be focusable and reachable via sequential keyboard navigation; its relative order is defined by the value of the attribute: the sequential follow the increasing number of the tabindex. If several elements share the same tabindex, their relative order follows their relative position in the document).
An element with a 0 value, an invalid value, or no tabindex value should be placed after elements with a positive tabindex in the sequential keyboard navigation order.
- Definition Classes
- GlobalAttrs
- lazy val target: Attr
A name or keyword indicating where to display the response that is received after submitting the form.
A name or keyword indicating where to display the response that is received after submitting the form. In HTML 4, this is the name of, or a keyword for, a frame. In HTML5, it is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame). The following keywords have special meanings:
- _self: Load the response into the same HTML 4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified. - _blank: Load the response into a new unnamed HTML 4 window or HTML5 browsing context. - _parent: Load the response into the HTML 4 frameset parent of the current frame or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as _self. - _top: HTML 4: Load the response into the full, original window, canceling all other frames. HTML5: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self. - iframename: The response is displayed in a named iframe.
- Definition Classes
- InputAttrs
- lazy val title: Attr
This attribute contains a text representing advisory information related to the element it belongs too.
This attribute contains a text representing advisory information related to the element it belongs too. Such information can typically, but not necessarily, be presented to the user as a tooltip.
MDN
- Definition Classes
- GlobalAttrs
- def toString(): String
- Definition Classes
- AnyRef → Any
- lazy val tpe: Attr
Shorthand for the
type
attributeShorthand for the
type
attribute- Definition Classes
- InputAttrs
- lazy val translate: AttrPair[Builder, String]
Specifies whether the content of an element should be translated or not
Specifies whether the content of an element should be translated or not
- Definition Classes
- GlobalAttrs
- lazy val type: Attr
This attribute is used to define the type of the content linked to.
This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as text/html, text/css, and so on. The common use of this attribute is to define the type of style sheet linked and the most common current value is text/css, which indicates a Cascading Style Sheet format. You can use tpe as an alias for this attribute so you don't have to backtick-escape this attribute.
MDN
- Definition Classes
- InputAttrs
- lazy val unselectable: Attr
IE-specific property to prevent user selection
- lazy val value: Attr
The initial value of the control.
The initial value of the control. This attribute is optional except when the value of the type attribute is radio or checkbox.
MDN
- Definition Classes
- InputAttrs
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- lazy val widthA: Attr
The
width
attribute specifies the width of aninput
element oftype
"image".The
width
attribute specifies the width of aninput
element oftype
"image".- Definition Classes
- InputAttrs
- lazy val wrap: Attr
Indicates how the control wraps text.
Indicates how the control wraps text. Possible values are:
hard: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the cols attribute must be specified. soft: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.
If this attribute is not specified, soft is its default value.
MDN
- lazy val xmlns: Attr
- object aria
ARIA is a set of special accessibility attributes which can be added to any markup, but is especially suited to HTML.
ARIA is a set of special accessibility attributes which can be added to any markup, but is especially suited to HTML. The role attribute defines what the general type of object is (such as an article, alert, or slider). Additional ARIA attributes provide other useful properties, such as a description for a form or the current value of a progressbar.
MDN
- object data extends DataAttribute
This class of attributes, called custom data attributes, allows proprietary information to be exchanged between the HTML and its DOM representation that may be used by scripts.
This class of attributes, called custom data attributes, allows proprietary information to be exchanged between the HTML and its DOM representation that may be used by scripts. All such custom data are available via the HTMLElement interface of the element the attribute is set on. The HTMLElement.dataset property gives access to them.
The * may be replaced by any name following the production rule of xml names with the following restrictions:
the name must not start with xml, whatever case is used for these letters; the name must not contain any semicolon (U+003A); the name must not contain capital A to Z letters.
Note that the HTMLElement.dataset attribute is a StringMap and the name of the custom data attribute data-test-value will be accessible via HTMLElement.dataset.testValue as any dash (U+002D) is replaced by the capitalization of the next letter (camelcase).
MDN
- Definition Classes
- GlobalAttrs
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
Inherited from FormEventAttrs[Builder, Output, FragT]
Inherited from WindowEventAttrs[Builder, Output, FragT]
Inherited from MouseEventAttrs[Builder, Output, FragT]
Inherited from KeyboardEventAttrs[Builder, Output, FragT]
Inherited from MiscellaneousEventAttrs[Builder, Output, FragT]
Inherited from MediaEventAttrs[Builder, Output, FragT]
Inherited from SharedEventAttrs[Builder, Output, FragT]
Inherited from ClipboardEventAttrs[Builder, Output, FragT]
Inherited from InputAttrs[Builder, Output, FragT]
Inherited from GlobalAttrs[Builder, Output, FragT]
Inherited from Util[Builder, Output, FragT]
Inherited from LowPriUtil[Builder, Output, FragT]
Inherited from AnyRef
Inherited from Any
Ungrouped
- lazy val scoped: Attr