DatastarAttrKey

zio.http.datastar.DatastarAttrKey
See theDatastarAttrKey companion object
final class DatastarAttrKey(val name: String)

Low-level key for constructing Datastar data-* attributes directly.

Most callers should prefer higher-level data* helpers from DatastarAttributes. Use DatastarAttrKey when defining a custom Datastar attribute name or when no dedicated helper exists yet. Values assigned with := are rendered through ToDatastarExpr, so expression contexts reject raw Scala String values in favor of explicit Datastar expressions.

Attributes

Companion
object
Source
DatastarAttrKey.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def :=[T](value: T)(implicit toDatastarExpr: ToDatastarExpr[T]): Attribute

Builds a DOM attribute from this key and a Datastar expression value.

Builds a DOM attribute from this key and a Datastar expression value.

Attributes

Source
DatastarAttrKey.scala

Concrete fields

val name: String

Attributes

Source
DatastarAttrKey.scala