DataOnSignalPatch

zio.http.datastar.DataOnSignalPatch
final class DataOnSignalPatch(val modifier: Maybe[OnSignalPatchModifier])

Builder for data-on-signal-patch Datastar attributes.

Delay, debounce, and throttle modifiers are encoded into the final attribute name. Repeated timing modifiers are normalized to the last effective value. Use := to attach the Datastar expression that should run when a signal patch arrives.

Attributes

Source
DataOnSignalPatch.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

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

Assigns the Datastar expression rendered for this signal-patch trigger.

Assigns the Datastar expression rendered for this signal-patch trigger.

Attributes

Source
DataOnSignalPatch.scala
def debounce(millis: Long): DataOnSignalPatch

Attributes

Source
DataOnSignalPatch.scala
def delay(millis: Long): DataOnSignalPatch

Attributes

Source
DataOnSignalPatch.scala
def throttle(millis: Long): DataOnSignalPatch

Attributes

Source
DataOnSignalPatch.scala