Packages

package codecs

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. codecs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait Codec[ScalaType, DomType] extends AnyRef

    This trait represents a way to encode and decode HTML attribute or DOM property values.

    This trait represents a way to encode and decode HTML attribute or DOM property values.

    It is needed because attributes encode all values as strings regardless of their type, and then there are also multiple ways to encode e.g. boolean values. Some attributes encode those as "true" / "false" strings, others as presence or absence of the element, and yet others use "yes" / "no" or "on" / "off" strings, and properties encode booleans as actual booleans.

    Scala DOM Types hides all this mess from you using codecs. All those pseudo-boolean attributes would be simply Attr[Boolean](name, codec) in your code.

Deprecated Type Members

  1. type AsIsCodec[V] = Codec[V, V]
    Annotations
    @deprecated
    Deprecated

    This used to be a subtrait of Codec, but now it's just a type alias. It will be removed later.

Value Members

  1. def AsIsCodec[V](): Codec[V, V]
  2. val BooleanAsAttrPresenceCodec: Codec[Boolean, String]
  3. val BooleanAsIsCodec: Codec[Boolean, Boolean]
  4. lazy val BooleanAsOnOffStringCodec: Codec[Boolean, String]
  5. lazy val BooleanAsTrueFalseStringCodec: Codec[Boolean, String]
  6. lazy val BooleanAsYesNoStringCodec: Codec[Boolean, String]
  7. lazy val DoubleAsIsCodec: Codec[Double, Double]
  8. lazy val DoubleAsStringCodec: Codec[Double, String]
  9. val IntAsIsCodec: Codec[Int, Int]
  10. lazy val IntAsStringCodec: Codec[Int, String]
  11. val StringAsIsCodec: Codec[String, String]

Deprecated Value Members

  1. lazy val IterableAsCommaSeparatedStringCodec: Codec[Iterable[String], String]
    Annotations
    @deprecated
    Deprecated

    (Since version 15.0.0-M7) Laminar no longer uses IterableAsCommaSeparatedStringCodec so I plan to remove it; if you need it, please let me know

  2. lazy val IterableAsSpaceSeparatedStringCodec: Codec[Iterable[String], String]
    Annotations
    @deprecated
    Deprecated

    (Since version 15.0.0-M7) Laminar no longer uses IterableAsSpaceSeparatedStringCodec so I plan to remove it; if you need it, please let me know

Inherited from AnyRef

Inherited from Any

Ungrouped