AddAttr

zio.blocks.html.DomModifier.AddAttr
final case class AddAttr(attr: Attribute) extends DomModifier

Attributes

Source
DomModifier.scala
Graph
Supertypes
trait DomModifier
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def applyTo(element: Element): Element

Applies this single effect to the given element, returning a new element with the modification applied.

Applies this single effect to the given element, returning a new element with the modification applied.

Unlike the batched ToModifier.buildFromEffects, this method creates intermediate elements for each effect. Use buildFromEffects when applying multiple effects for better performance.

Value parameters

element

the element to modify

Attributes

Returns

a new element with this effect applied

Inherited from:
DomModifier
Source
DomModifier.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala