Text

zio.http.template2.Dom.Text
final case class Text(content: String) extends Dom

Attributes

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

Members list

Value members

Inherited methods

def collect(predicate: PartialFunction[Dom, Dom]): List[Dom]

Collect all elements matching the predicate

Collect all elements matching the predicate

Attributes

Inherited from:
Dom
def filter(predicate: Dom => Boolean): Dom

Filter children recursively based on a predicate

Filter children recursively based on a predicate

Attributes

Inherited from:
Dom
def find(predicate: Dom => Boolean): Option[Dom]

Find the first element matching the predicate

Find the first element matching the predicate

Attributes

Inherited from:
Dom

Attributes

Inherited from:
Dom
def modify(element: Element): Element

Attributes

Inherited from:
Modifier

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def render(indentation: Boolean): String

Render the DOM to HTML string with optional indentation

Render the DOM to HTML string with optional indentation

Attributes

Inherited from:
Dom
def render: String

Render the DOM to HTML string without indentation

Render the DOM to HTML string without indentation

Attributes

Inherited from:
Dom

Render the DOM to minified HTML string

Render the DOM to minified HTML string

Attributes

Inherited from:
Dom
def transform(f: Dom => Dom): Dom

Transform this DOM node by applying a function

Transform this DOM node by applying a function

Attributes

Inherited from:
Dom