HtmxAttrKey

zio.http.htmx.HtmxAttrKey
See theHtmxAttrKey companion object
final class HtmxAttrKey[-A]

Typed key for a single HTMX attribute.

Unlike zio.blocks.html.AttributeKey, this key carries the expected value type for the attribute itself. This keeps rich HTMX attributes such as hx-swap, hx-trigger, and hx-target from silently accepting unrelated raw strings while still allowing explicit URL/string surfaces where HTMX itself expects them.

Attributes

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

Members list

Value members

Concrete methods

def :=(value: A): Attribute

Assigns a value to this HTMX attribute using the attribute's declared value type.

Assigns a value to this HTMX attribute using the attribute's declared value type.

Attributes

Source
HtmxAttrKey.scala

Concrete fields

val name: String

Attributes

Source
HtmxAttrKey.scala