Value

zio.http.htmx.HxSwap.Value
final case class Value(strategy: Strategy, swapDelay: Option[FiniteDuration] = ..., settleDelay: Option[FiniteDuration] = ..., transitionEnabled: Boolean = ..., scroll: Option[ScrollPosition] = ..., show: Option[ShowPosition] = ..., ignoreTitleEnabled: Boolean = ..., focusScroll: Option[Boolean] = ...) extends HxSwap

Concrete swap value with a base strategy and zero or more modifiers.

Attributes

Source
HxSwap.scala
Graph
Supertypes
trait HxSwap
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def render: String

Renders this swap strategy into the literal hx-swap attribute value.

Renders this swap strategy into the literal hx-swap attribute value.

Attributes

Definition Classes
Source
HxSwap.scala

Inherited methods

def focusScroll(enabled: Boolean): HxSwap

Sets focusScroll:true or focusScroll:false.

Sets focusScroll:true or focusScroll:false.

Attributes

Inherited from:
HxSwap
Source
HxSwap.scala

Enables ignoreTitle:true.

Enables ignoreTitle:true.

Attributes

Inherited from:
HxSwap
Source
HxSwap.scala
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
def scroll(position: ScrollPosition): HxSwap

Adds a scroll: modifier.

Adds a scroll: modifier.

Attributes

Inherited from:
HxSwap
Source
HxSwap.scala
def settle(duration: FiniteDuration): HxSwap

Adds a settle: delay modifier.

Adds a settle: delay modifier.

Attributes

Inherited from:
HxSwap
Source
HxSwap.scala
def show(position: ShowPosition): HxSwap

Adds a show: modifier.

Adds a show: modifier.

Attributes

Inherited from:
HxSwap
Source
HxSwap.scala
def swap(duration: FiniteDuration): HxSwap

Adds a swap: delay modifier.

Adds a swap: delay modifier.

Attributes

Inherited from:
HxSwap
Source
HxSwap.scala

Enables transition:true.

Enables transition:true.

Attributes

Inherited from:
HxSwap
Source
HxSwap.scala