Element

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

Attributes

Companion
object
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

def apply(modifiers: Iterable[Modifier]): Element
def attr(name: String, value: AttributeValue): Element

Add or update an attribute

Add or update an attribute

Attributes

def attr(name: String, value: String): Element
def removeAttr(name: String): Element

Remove an attribute

Remove an attribute

Attributes

def render: String
Implicitly added by toCssSelector
def replaceChildren(children: Dom*): Element

Replace all children

Replace all children

Attributes

def tag: String
def when(condition: Boolean)(modifiers: Modifier*): Element

Add children conditionally

Add children conditionally

Attributes

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

Add children if Option is defined

Add children if Option is defined

Attributes

Concrete methods

def addAttributes(attribute: Attribute, attributes: Attribute*): Element
def addChildren(children: Iterable[Dom]): Element
def addChildren(child: Dom, children: Dom*): Element
def apply(modifier: Modifier, modifiers: Modifier*): Element

Apply modifiers (attributes and children) to this element

Apply modifiers (attributes and children) to this element

Attributes

Inherited methods

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

Attributes

Inherited from:
CssSelectable
def &(other: CssSelector): CssSelector

Attributes

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

Attributes

Inherited from:
CssSelectable
def +(adjacent: CssSelector): CssSelector

Attributes

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

Attributes

Inherited from:
CssSelectable
def >(child: CssSelector): CssSelector

Attributes

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

Attributes

Inherited from:
CssSelectable
def >>(descendant: CssSelector): CssSelector

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

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

Collect all elements matching the predicate

Collect all elements matching the predicate

Attributes

Inherited from:
Dom
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
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
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
Dom
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

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

Attributes

Inherited from:
Modifier
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

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

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
def nthChild(formula: String): CssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

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

Attributes

Inherited from:
CssSelectable
def part(name: String): CssSelector

Attributes

Inherited from:
CssSelectable
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
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
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
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
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

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

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

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

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

Inherited from:
CssSelectable
Implicitly added by toCssSelector

Attributes

Inherited from:
CssSelectable

Attributes

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

Attributes

Inherited from:
CssSelectable
def |(other: CssSelector): CssSelector

Attributes

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

Attributes

Inherited from:
CssSelectable
def ~(sibling: CssSelector): CssSelector

Attributes

Inherited from:
CssSelectable

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
override val selector: CssSelector