Package

scalatags

generic

Permalink

package generic

Visibility
  1. Public
  2. All

Type Members

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

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

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

    Permalink
  4. trait AnchorElementAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

    Permalink
  5. case class Attr(name: String, namespace: Option[Namespace] = None, raw: Boolean = false) extends Product with Serializable

    Permalink

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

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

    name

    the name of this particular attribute

    namespace

    an XML Namespace that this attribute lives in

    raw

    all Attrs are checked to fail fast if their names are invalid XML attrs; flagging them as raw disables the checks in the few cases you actually want invalid XML attrs (e.g. AngularJS)

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

    Permalink

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

  7. trait AttrValue[Builder, T] extends AnyRef

    Permalink

    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( ... )
  8. 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] with AnchorElementAttrs[Builder, Output, FragT]

    Permalink

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

    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.

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

    Permalink

    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.

  10. trait ClipboardEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

    Permalink

    Clipboard Events

  11. trait FormEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

    Permalink

    Form Events that are triggered by actions inside an HTML form.

    Form Events that are triggered by actions inside an HTML form. However, these events apply to almost all HTML elements but are most commonly used in form elements.

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

    Permalink

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

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

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

    Permalink

    A trait for global attributes that are applicable to any HTML5 element.

    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.

  14. trait InputAttrs[Builder, Output <: FragT, FragT] extends GlobalAttrs[Builder, Output, FragT]

    Permalink

    Attributes applicable only to the input element.

    Attributes applicable only to the input element. This set is broken out because it may be useful to identify the attributes of the input element separately from other groupings. The attributes permitted by the input element are likely the most complex of any element in HTML5.

  15. trait KeyboardEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

    Permalink

    Keyboard Events - triggered by user action son the keyboard or similar user actions

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

    Permalink
  17. trait MediaEventAttrs[Builder, Output <: FragT, FragT] extends SharedEventAttrs[Builder, Output, FragT]

    Permalink

    Media Events - triggered by media like videos, images and audio.

    Media Events - triggered by media like videos, images and audio. These apply to all HTML elements, but they are most common in media elements, like <audio>, <embed>, , , and