Attribute

tyrian.Attribute
See theAttribute companion object
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.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Attr[Nothing]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def map[N](f: Nothing => N): Attribute
def render: String
Extension method from tyrian

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Attr -> Any
Inherited from:
Attr