Element

zio.http.template2.Dom.Element
See theElement companion object
sealed trait Element extends Dom, CssSelectable

Attributes

Companion
object
Source
Dom.scala
Graph
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

Members list

Value members

Abstract methods

Attributes

Source
Dom.scala
def apply(modifiers: Iterable[Modifier]): Element

Attributes

Source
Dom.scala
def attr(name: String, value: AttributeValue): Element

Add or update an attribute

Add or update an attribute

Attributes

Source
Dom.scala
def attr(name: String, value: String): Element

Attributes

Source
Dom.scala

Attributes

Source
Dom.scala

Attributes

Source
Dom.scala
def removeAttr(name: String): Element

Remove an attribute

Remove an attribute

Attributes

Source
Dom.scala
def render: String
Implicitly added by toCssSelector

Attributes

Source
CssSelector.scala
def replaceChildren(children: Dom*): Element

Replace all children

Replace all children

Attributes

Source
Dom.scala
def tag: String

Attributes

Source
Dom.scala
def when(condition: Boolean)(modifiers: Modifier*): Element

Add children conditionally

Add children conditionally

Attributes

Source
Dom.scala
def whenSome[T](option: Option[T])(f: T => Seq[Modifier]): Element

Add children if Option is defined

Add children if Option is defined

Attributes

Source
Dom.scala

Concrete methods

def addAttributes(attribute: Attribute, attributes: Attribute*): Element

Attributes

Source
Dom.scala
def addChildren(children: Iterable[Dom]): Element

Attributes

Source
Dom.scala
def addChildren(child: Dom, children: Dom*): Element

Attributes

Source
Dom.scala
def apply(modifier: Modifier, modifiers: Modifier*): Element

Apply modifiers (attributes and children) to this element

Apply modifiers (attributes and children) to this element

Attributes

Source
Dom.scala

Inherited methods

def &(other: CssSelector): CssSelector
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def &(other: CssSelector): CssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def +(adjacent: CssSelector): CssSelector
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def +(adjacent: CssSelector): CssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def >(child: CssSelector): CssSelector
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def >(child: CssSelector): CssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def >>(descendant: CssSelector): CssSelector
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def >>(descendant: CssSelector): CssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def collect(predicate: PartialFunction[Dom, Dom]): List[Dom]

Collect all elements matching the predicate

Collect all elements matching the predicate

Attributes

Inherited from:
Dom
Source
Dom.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def filter(predicate: Dom => Boolean): Dom

Filter children recursively based on a predicate

Filter children recursively based on a predicate

Attributes

Inherited from:
Dom
Source
Dom.scala
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
Source
Dom.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
Dom
Source
Dom.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def modify(element: Element): Element

Attributes

Inherited from:
Modifier
Source
Dom.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def nthChild(formula: String): CssSelector
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def nthChild(formula: String): CssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def part(name: String): CssSelector
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def part(name: String): CssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
Implicitly added by toCssSelector

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
Implicitly added by toCssSelector

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
Implicitly added by toCssSelector

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
Source
Dom.scala
def render: String

Render the DOM to HTML string without indentation

Render the DOM to HTML string without indentation

Attributes

Inherited from:
Dom
Source
Dom.scala

Render the DOM to minified HTML string

Render the DOM to minified HTML string

Attributes

Inherited from:
Dom
Source
Dom.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
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
Source
Dom.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def withAttribute(attr: String, value: String): CssSelector
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def withAttribute(attr: String, value: String): CssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def |(other: CssSelector): CssSelector
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def |(other: CssSelector): CssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def ~(sibling: CssSelector): CssSelector
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala
def ~(sibling: CssSelector): CssSelector

Attributes

Inherited from:
CssSelectable
Source
CssSelector.scala

Inherited and Abstract methods

def canEqual(that: Any): Boolean
Implicitly added by toCssSelector

Attributes

Inherited from:
Equals
def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
Implicitly added by toCssSelector

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def productElement(n: Int): Any
Implicitly added by toCssSelector

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product

Concrete fields

Implicitly added by toCssSelector

Attributes

Source
CssSelector.scala
override val selector: CssSelector

Attributes

Source
Dom.scala