scalatags.generic

Attrs

trait Attrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

Trait containing the contents of the Attrs module, so they can be mixed in to other objects if needed.

Linear Supertypes
Util[Builder, Output, FragT], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Attrs
  2. Util
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type ConcreteHtmlTag[T <: Output] <: TypedTag[Builder, T, FragT]

    Definition Classes
    Util
  2. implicit class ExtendedString extends AnyRef

    Provides extension methods on strings to fit them into Scalatag fragments.

  3. implicit class SeqNode[A] extends Modifier[Builder]

    Allows you to modify a HtmlTag by adding a Seq containing other nest-able objects to its list of children.

Abstract Value Members

  1. abstract def makeAbstractTypedTag[T <: Output](tag: String, void: Boolean): ConcreteHtmlTag[T]

    Definition Classes
    Util
  2. implicit abstract def stringAttr: AttrValue[Builder, String]

    Attributes
    protected[this]
    Definition Classes
    Util
  3. implicit abstract def stringStyle: StyleValue[Builder, String]

    Attributes
    protected[this]
    Definition Classes
    Util

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. implicit def ArrayNode[A](xs: Array[A])(implicit arg0: (A) ⇒ Modifier[Builder]): SeqNode[A]

    Allows you to modify a HtmlTag by adding an Array containing other nest-able objects to its list of children.

    Allows you to modify a HtmlTag by adding an Array containing other nest-able objects to its list of children.

    Definition Classes
    Util
  7. implicit def OptionNode[A](xs: Option[A])(implicit arg0: (A) ⇒ Modifier[Builder]): SeqNode[A]

    Allows you to modify a HtmlTag by adding an Option containing other nest-able objects to its list of children.

    Allows you to modify a HtmlTag by adding an Option containing other nest-able objects to its list of children.

    Definition Classes
    Util
  8. implicit def UnitNode(u: Unit): Modifier[Builder]

    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
    Util
  9. 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

  10. 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

  11. 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

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. 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

  14. val autofocus: Attr

    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

  15. 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

  16. val checked: Attr

    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

  17. 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

  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. val cls: Attr

    Shorthand for the class attribute

  20. 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

  21. val disabled: Attr

    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

  22. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. val for: Attr

    Describes elements which belongs to this one.

    Describes elements which belongs to this one. Used on labels and output elements.

    MDN

  26. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. 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

  29. 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

  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. 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

  32. val name: Attr

    Name of the element.

    Name of the element. For example used by the server to identify the fields in form submits.

    MDN

  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  36. val onblur: Attr

    The blur event is raised when an element loses focus.

    The blur event is raised when an element loses focus.

    MDN

  37. 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

  38. 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

  39. 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

  40. 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

  41. 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

  42. 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

  43. 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

  44. val onmouseout: Attr

    The mouseout event is raised when the mouse leaves an element (e.

    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

  45. 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

  46. 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

  47. val onreset: Attr

    The reset event is fired when a form is reset.

    The reset event is fired when a form is reset.

    MDN

  48. 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

  49. 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

  50. 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

  51. val readonly: Attr

    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

  52. 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

  53. val required: Attr

    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

  54. val rows: Attr

    The number of visible text lines for the control.

    The number of visible text lines for the control.

    MDN

  55. 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

  56. val spellcheck: Attr

    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

  57. 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

  58. 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

  59. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  60. 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.

  61. 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.

  62. 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

  63. def toString(): String

    Definition Classes
    AnyRef → Any
  64. val tpe: Attr

    Shorthand for the type attribute

  65. 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

  66. 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

  67. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. val xmlns: Attr

Inherited from Util[Builder, Output, FragT]

Inherited from AnyRef

Inherited from Any

Ungrouped