scalatags

generic

package generic

Visibility
  1. Public
  2. All

Type Members

  1. trait AbstractShort[Builder, Output <: FragT, FragT] extends AnyRef

  2. trait Aggregate[Builder, Output <: FragT, FragT] extends Aliases[Builder, Output, FragT]

  3. trait Aliases[Builder, Output <: FragT, FragT] extends AnyRef

  4. case class Attr(name: String) extends Product with Serializable

    Wraps up a HTML attribute in a value which isn't a string.

  5. case class AttrPair[Builder, T](a: Attr, v: T, ev: AttrValue[Builder, T]) extends Modifier[Builder] with Product with Serializable

    An Attr, it's associated value, and an AttrValue of the correct type

  6. trait AttrValue[Builder, T] extends AnyRef

    Used to specify how to handle a particular type T when it is used as the value of a Attr.

    Used to specify how to handle a particular type T when it is used as the value of a Attr. Only types with a specified AttrValue may be used.

    Annotations
    @implicitNotFound( ... )
  7. 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.

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

    An abstract representation of the Scalatags package.

    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.

  9. trait Frag[Builder, +FragT] extends Modifier[Builder]

    Marker sub-type of Modifier which signifies that that type can be rendered as a standalone fragment of FragT.

    Marker sub-type of Modifier which signifies that that type can be rendered as a standalone fragment of FragT. This excludes things like AttrPairs or StylePairs which only make sense as part of a parent fragment

  10. trait LowPriUtil[Builder, Output <: FragT, FragT] extends AnyRef

  11. trait Modifier[Builder] extends AnyRef

    Represents a value that can be nested within a TypedTag.

    Represents a value that can be nested within a TypedTag. This can be another Modifier, but can also be a CSS style or HTML attribute binding, which will add itself to the node's attributes but not appear in the final children list.

  12. trait Namespace extends AnyRef

    Represents a single XML namespace.

    Represents a single XML namespace. This is currently ignored in scalatags.Text, but used to create elements with the correct namespace in scalatags.JsDom. A Namespace can be provided implicitly (or explicitly) when creating tags via "".tag, with a default of "http://www.w3.org/1999/xhtml" if none is found.

  13. case class PixelStyle(jsName: String, cssName: String) extends Product with Serializable

    Wraps up a CSS style in a value.

  14. trait PixelStyleValue[Builder, T] extends AnyRef

    Annotations
    @implicitNotFound( ... )
  15. case class Style(jsName: String, cssName: String) extends Product with Serializable

    Wraps up a CSS style in a value.

  16. trait StyleMisc[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

  17. case class StylePair[Builder, T](s: Style, v: T, ev: StyleValue[Builder, T]) extends Modifier[Builder] with Product with Serializable

    A Style, it's associated value, and a StyleValue of the correct type

  18. trait StyleProcessor extends AnyRef

  19. trait StyleValue[Builder, T] extends AnyRef

    Used to specify how to handle a particular type T when it is used as the value of a Style.

    Used to specify how to handle a particular type T when it is used as the value of a Style. Only types with a specified StyleValue may be used.

    Annotations
    @implicitNotFound( ... )
  20. trait Styles[Builder, Output <: FragT, FragT] extends StyleMisc[Builder, Output, FragT]

    Trait that contains the contents of the Styles object, so they can be mixed in to other objects if needed.

  21. trait Styles2[Builder, Output <: FragT, FragT] extends StyleMisc[Builder, Output, FragT]

    Contains CSS styles which are used less frequently.

    Contains CSS styles which are used less frequently. These are not imported by default to avoid namespace pollution.

  22. trait SvgAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

  23. trait SvgTags[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

    Contains Tags which are only used for SVG.

    Contains Tags which are only used for SVG. These are not imported by default to avoid namespace pollution.

  24. trait Tags[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

    Trait that contains the contents of the Tags object, so they can be mixed in to other objects if needed.

  25. trait Tags2[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

    Contains HTML tags which are used less frequently.

    Contains HTML tags which are used less frequently. These are generally imported individually as needed.

  26. trait TypedTag[Builder, +Output <: FragT, +FragT] extends Frag[Builder, FragT]

    A generic representation of a Scalatags tag.

    A generic representation of a Scalatags tag.

    Output

    The base type that this tag represents. On Scala-JVM, this is all Nothing, while on ScalaJS this could be the dom.XXXElement associated with that tag name.

  27. trait Util[Builder, Output <: FragT, FragT] extends LowPriUtil[Builder, Output, FragT]

    Created by haoyi on 6/2/14.

Value Members

  1. object Namespace

Ungrouped