Dom

zio.http.template2.Dom
See theDom companion trait
object Dom

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Dom.type

Members list

Type members

Classlikes

sealed trait Attribute extends Modifier

Attributes

Supertypes
trait Modifier
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait AttributeValue extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
trait BooleanValue
class JsValue
class MultiValue
class StringValue
final case class BooleanAttribute(name: String, enabled: Boolean = ...) extends Attribute

Boolean attribute (like disabled, checked, etc.)

Boolean attribute (like disabled, checked, etc.)

Attributes

Supertypes
trait Attribute
trait Modifier
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class CompleteAttribute(name: String, value: AttributeValue) extends Attribute, CssSelectable

Complete attribute with name and value

Complete attribute with name and value

Attributes

Supertypes
trait Attribute
trait Modifier
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Element

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Element.type
sealed trait Element extends Dom, CssSelectable

Attributes

Companion
object
Supertypes
trait Dom
trait Modifier
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Generic
class Script
class Style
case object Empty extends Dom

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Dom
trait Modifier
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Empty.type
final case class Fragment(children: Iterable[Dom]) extends Dom

Attributes

Supertypes
trait Dom
trait Modifier
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class PartialAttribute(name: String)

Partial attribute that needs a value (like href := "...")

Partial attribute that needs a value (like href := "...")

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class PartialMultiAttribute(name: String, separator: AttributeSeparator = ...)

Partial multi-value attribute that needs values (like class := ("foo", "bar"))

Partial multi-value attribute that needs values (like class := ("foo", "bar"))

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class RawHtml(content: String) extends Dom

Attributes

Supertypes
trait Dom
trait Modifier
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Text(content: String) extends Dom

Attributes

Supertypes
trait Dom
trait Modifier
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def attr(name: String, value: String): CompleteAttribute
def boolAttr(name: String, enabled: Boolean = ...): BooleanAttribute
def element(tag: String): Generic
def empty: Dom
def fragment(children: Dom*): Fragment
def multiAttr(name: String, values: Iterable[String], separator: AttributeSeparator = ...): CompleteAttribute
def multiAttr(name: String, separator: AttributeSeparator, values: String*): CompleteAttribute
def raw(content: String): RawHtml
def text(content: String): Text

Concrete fields

val script: Script
val style: Style

Implicits

Implicits

implicit val htmlCodec: HttpContentCodec[Dom]
implicit val schema: Schema[Dom]