scalatags.generic

Bundle

trait Bundle[Builder, Output <: FragT, FragT] extends Aliases[Builder, Output, FragT]

An abstract representation of the Scalatags package. This allows you to customize Scalatags to work with different backends, by defining your own implementation of Tag, and specifying how the various Attrs and Styles contribute to construct the Builder. Apart from satisfying the default String/Boolean/Numeric implementations of Attr and Style, you can also define your own, e.g. ScalaJS ships with an implicit conversion from js.Any to Attr, so that you can attach objects to the resultant dom.Element without serializing them.

By default, Scalatags ships with scalatags.Text: Bundle[StringBuilder] on all platforms, and scalatags.JsDom: Bundle[dom.Element] on ScalaJS.

It is possible to write entirely backend-agnostic Scalatags code by making your code parametric on a Bundle (or some subclass of it), and importing from that rather than importing directly from scalatags.JsDom or scalatags.Text. You will naturally only be able to use functionality (e.g. implicit conversions to Attrs and Styles which are present in the common interface.

Builder

The type to which Attrs and Styles are applied to when the Tag is being rendered to give a final result.

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

Type Members

  1. type AbstractShort = generic.AbstractShort[Builder, Output, FragT]

  2. type Attr = generic.Attr

    Definition Classes
    Aliases
  3. type AttrValue[V] = generic.AttrValue[Builder, V]

    Definition Classes
    Aliases
  4. type Attrs = generic.Attrs[Builder, Output, FragT]

    Definition Classes
    Aliases
  5. type Frag = generic.Frag[Builder, FragT]

    Definition Classes
    Aliases
  6. type Modifier = generic.Modifier[Builder]

    Definition Classes
    Aliases
  7. type PixelStyleValue[V] = generic.PixelStyleValue[Builder, V]

    Definition Classes
    Aliases
  8. abstract type RawFrag <: Modifier

    A Modifier which contains a String which will not be escaped.

    A Modifier which contains a String which will not be escaped.

    Attributes
    protected[this]
    Definition Classes
    Aliases
  9. abstract type StringFrag <: Modifier

    A Modifier which contains a String.

    A Modifier which contains a String.

    Attributes
    protected[this]
    Definition Classes
    Aliases
  10. type Style = generic.Style

    Definition Classes
    Aliases
  11. type StyleValue[V] = generic.StyleValue[Builder, V]

    Definition Classes
    Aliases
  12. type Styles = generic.Styles[Builder, Output, FragT]

    Definition Classes
    Aliases
  13. type Styles2 = generic.Styles2[Builder, Output, FragT]

    Definition Classes
    Aliases
  14. type SvgAttrs = generic.SvgAttrs[Builder, Output, FragT]

    Definition Classes
    Aliases
  15. type SvgTags = generic.SvgTags[Builder, Output, FragT]

    Definition Classes
    Aliases
  16. abstract type Tag <: TypedTag[Builder, Output, FragT]

    Definition Classes
    Aliases
  17. type Tags = generic.Tags[Builder, Output, FragT]

    Definition Classes
    Aliases
  18. type Tags2 = generic.Tags2[Builder, Output, FragT]

    Definition Classes
    Aliases
  19. type Util = generic.Util[Builder, Output, FragT]

    Definition Classes
    Aliases

Abstract Value Members

  1. abstract val RawFrag: Companion[RawFrag]

    Attributes
    protected[this]
    Definition Classes
    Aliases
  2. abstract val StringFrag: Companion[StringFrag]

    Attributes
    protected[this]
    Definition Classes
    Aliases
  3. abstract val all: Attrs with Styles with Tags with DataConverters with Util with Aggregate[Builder, Output, FragT]

    Convenience object for importing all of Scalatags' functionality at once

  4. abstract val attrs: Attrs

    Common attributes.

  5. abstract val implicits: Aggregate[Builder, Output, FragT]

    Convenience object for only importing Scalatag's implicits, without importing any of the tags, styles or attributes themselves.

    Convenience object for only importing Scalatag's implicits, without importing any of the tags, styles or attributes themselves. This includes conversions to Modifier, typeclass instances for treating strings and numbers as attributes or style values, and other things.

  6. abstract val short: AbstractShort with Aggregate[Builder, Output, FragT]

    Convenience object for importing only Scalatags' tags (e.g.

    Convenience object for importing only Scalatags' tags (e.g. div, p) into the local namespace, while leaving Styles and Attributes accessible via the * object

  7. abstract val styles: Styles

    Common styles

  8. abstract val styles2: Styles2

    Less common styles

  9. abstract val svgAttrs: SvgAttrs

    SVG only attributes

  10. abstract val svgTags: SvgTags

    SVG only tags

  11. abstract val tags: Tags

    Common tags

  12. abstract val tags2: Tags2

    Less common tags

Concrete Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  16. def toString(): String

    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Aliases[Builder, Output, FragT]

Inherited from AnyRef

Inherited from Any

Ungrouped