HxTrigger

zio.http.htmx.HxTrigger
See theHxTrigger companion object
final case class HxTrigger extends HxTriggerValue

Typed representation of a single hx-trigger declaration.

A trigger starts with an event name and can be refined with an optional JavaScript filter plus normalized modifier groups such as delay, throttle, source selector, queue strategy, threshold, or root selector.

Attributes

Companion
object
Source
HxTrigger.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Adds the changed modifier.

Adds the changed modifier.

Attributes

Source
HxTrigger.scala

Adds the consume modifier.

Adds the consume modifier.

Attributes

Source
HxTrigger.scala
def delay(duration: FiniteDuration): HxTrigger

Adds or replaces the delay: modifier.

Adds or replaces the delay: modifier.

Attributes

Source
HxTrigger.scala
def filter(expression: Js): HxTrigger

Replaces the JavaScript filter expression for this trigger.

Replaces the JavaScript filter expression for this trigger.

Js is an intentionally raw JavaScript surface. Do not pass unsanitized user input into this value.

Attributes

Source
HxTrigger.scala
def from(selector: String): HxTrigger

Adds or replaces the from: modifier.

Adds or replaces the from: modifier.

Attributes

Source
HxTrigger.scala
def from(target: HxTarget): HxTrigger

Attributes

Source
HxTrigger.scala

Adds the once modifier.

Adds the once modifier.

Attributes

Source
HxTrigger.scala
def queue(strategy: QueueStrategy): HxTrigger

Adds or replaces the queue: modifier.

Adds or replaces the queue: modifier.

Attributes

Source
HxTrigger.scala
def render: String

Attributes

Source
HxTrigger.scala
def root(selector: String): HxTrigger

Adds or replaces the root: modifier.

Adds or replaces the root: modifier.

Attributes

Source
HxTrigger.scala
def target(selector: String): HxTrigger

Adds or replaces the target: modifier.

Adds or replaces the target: modifier.

Attributes

Source
HxTrigger.scala
def threshold(value: Double): HxTrigger

Adds or replaces the threshold: modifier.

Adds or replaces the threshold: modifier.

Attributes

Source
HxTrigger.scala
def throttle(duration: FiniteDuration): HxTrigger

Adds or replaces the throttle: modifier.

Adds or replaces the throttle: modifier.

Attributes

Source
HxTrigger.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala