ToDom

zio.blocks.html.ToDom
See theToDom companion object
trait ToDom[-A]

Typeclass for values that can be converted to a Dom node.

Similar to ToCss and ToJs, ToDom provides a uniform way to convert Scala values into DOM representations. Primitive types are converted to Dom.Text nodes, while Dom values pass through unchanged.

Type parameters

A

the input type to convert

Attributes

Companion
object
Source
ToDom.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def toDom(a: A): Dom
Implicitly added by iterableToDom

Converts the given value to a Dom node.

Converts the given value to a Dom node.

Value parameters

a

the value to convert

Attributes

Returns

a DOM representation of the value

Source
ToDom.scala
def toDom(a: A): Dom
Implicitly added by optionToDom

Converts the given value to a Dom node.

Converts the given value to a Dom node.

Value parameters

a

the value to convert

Attributes

Returns

a DOM representation of the value

Source
ToDom.scala
def toDom(a: A): Dom

Converts the given value to a Dom node.

Converts the given value to a Dom node.

Value parameters

a

the value to convert

Attributes

Returns

a DOM representation of the value

Source
ToDom.scala