Attribute

final case class Attribute(name: String, value: String) extends Attr[Nothing]

Attribute of an HTML tag

Attributes are like properties, but can be removed. This is important for attributes like disabled, hidden, selected where there is no value, they are present and therefore set, or absent and unset.

Companion:
object
trait Serializable
trait Product
trait Equals
trait Attr[Nothing]
class Object
trait Matchable
class Any

Value members

Concrete methods

def map[N](f: Nothing => N): Attribute

Inherited methods

Inherited from:
Product