Signal

zio.http.datastar.Signal
See theSignal companion object
final class Signal[A]

A named reactive signal for the Datastar frontend framework.

Represents a client-side signal identified by name. Signal names are validated at construction time. Literal names are checked at compile time, and dynamic names are checked at runtime. Names must be dot-separated JavaScript identifiers and must not contain __, which Datastar reserves for modifier syntax. Use := to create a SignalUpdate that pairs this signal with a JSON-serialized value.

val count = Signal[Int]("count")
count := 0  // SignalUpdate ready for patchSignals

Attributes

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

Members list

Value members

Concrete methods

def :=(value: A)(implicit schema: Schema[A]): SignalUpdate[A]

Attributes

Source
Signal.scala

Attributes

Source
Signal.scala

Concrete fields

val name: String

Attributes

Source
Signal.scala