scalatags.generic

GlobalAttrs

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

A trait for global attributes that are applicable to any HTML5 element. All traits that define Attrs should derive from this trait since all groupings of attributes should include these global ones.

Linear Supertypes
Util[Builder, Output, FragT], LowPriUtil[Builder, Output, FragT], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GlobalAttrs
  2. Util
  3. LowPriUtil
  4. AnyRef
  5. 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. class DataAttribute extends Dynamic

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

Abstract Value Members

  1. 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
  2. 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
  3. abstract def makeAbstractTypedTag[T <: Output](tag: String, void: Boolean, namespaceConfig: Namespace): ConcreteHtmlTag[T]

    Definition Classes
    Util
  4. implicit abstract def stringAttrX: AttrValue[Builder, String]

    Attributes
    protected[this]
    Definition Classes
    Util
  5. implicit abstract def stringPixelStyleX: PixelStyleValue[Builder, String]

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

    Attributes
    protected[this]
    Definition Classes
    Util
  7. abstract def tag(s: String, void: Boolean = false): TypedTag[Builder, Output, FragT]

    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 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
  7. 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
  8. 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
  9. 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
  10. lazy val accesskey: Attr

    Specifies a shortcut key to activate/focus an element

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def attr(s: String, ns: Namespace = null, raw: Boolean = false): Attr

    Constructs an Attr attribute object from a string; can be used inline:

    Constructs an Attr attribute object from a string; can be used inline:

    div(
    attr("hello-world-special-attr") := "foo
    )

    Or assigned to a name and used later

    val hello = attr("hello-world-special-attr")
    div(
      hello := "foo
    )
    Definition Classes
    Util
  13. 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

  14. def clone(): AnyRef

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

    Shorthand for the class attribute

  16. lazy val contenteditable: Attr

  17. lazy val contextmenu: Attr

  18. def css(s: String): Style

    Constructs a CSS Style from a string, can be used inline

    Constructs a CSS Style from a string, can be used inline

    div(
    css("-moz-special-style") := "foo"
    )

    Or assigned to a name and used later

    val mozSpecial := css("-moz-special-style")
    div(
      mozSpecial := "foo"
    )
    Definition Classes
    Util
  19. def data(suffix: String): Attr

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

  21. 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)

  22. lazy val draggable: AttrPair[Builder, String]

    A Boolean attribute that specifies whether an element is draggable or not

  23. lazy val dropzone: Attr

    Specifies whether the dragged data is copied, moved, or linked, when dropped

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def frag(frags: Frag[Builder, FragT]*): Frag[Builder, FragT]

    Definition Classes
    Util
  28. final def getClass(): Class[_]

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

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

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

  32. final def isInstanceOf[T0]: Boolean

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

  34. def modifier(mods: Modifier[Builder]*): Modifier[Builder]

    Definition Classes
    Util
  35. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

  43. def toString(): String

    Definition Classes
    AnyRef → Any
  44. lazy val translate: AttrPair[Builder, String]

    Specifies whether the content of an element should be translated or not

  45. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Util[Builder, Output, FragT]

Inherited from LowPriUtil[Builder, Output, FragT]

Inherited from AnyRef

Inherited from Any

Ungrouped