HxSwap

zio.http.htmx.HxSwap
See theHxSwap companion trait
object HxSwap

Attributes

Companion
trait
Source
HxSwap.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
HxSwap.type

Members list

Type members

Classlikes

Attributes

Companion
trait
Source
HxSwap.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ScrollPosition extends Product, Serializable

Valid positions for the scroll: modifier.

Valid positions for the scroll: modifier.

Attributes

Companion
object
Source
HxSwap.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Bottom
object Top
object ShowPosition

Attributes

Companion
trait
Source
HxSwap.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ShowPosition extends Product, Serializable

Valid positions for the show: modifier.

Valid positions for the show: modifier.

Attributes

Companion
object
Source
HxSwap.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Bottom
object Top
object Strategy

Attributes

Companion
trait
Source
HxSwap.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Strategy.type
sealed trait Strategy extends Product, Serializable

Core HTMX swap strategies supported by hx-swap.

Core HTMX swap strategies supported by hx-swap.

Attributes

Companion
object
Source
HxSwap.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object AfterBegin
object AfterEnd
object BeforeBegin
object BeforeEnd
object Delete
object InnerHTML
object None_
object OuterHTML
object TextContent
Show all
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.

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

Attributes

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

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def parse(value: String): Either[String, HxSwap]

Parses a rendered HTMX swap string back into a typed HxSwap value.

Parses a rendered HTMX swap string back into a typed HxSwap value.

The parser accepts the same rendering format produced by render and returns a descriptive error for unsupported strategies or modifiers.

Attributes

Source
HxSwap.scala

Concrete fields

Attributes

Source
HxSwap.scala

Attributes

Source
HxSwap.scala

Attributes

Source
HxSwap.scala

Attributes

Source
HxSwap.scala
val Delete: HxSwap

Attributes

Source
HxSwap.scala

Attributes

Source
HxSwap.scala

Attributes

Source
HxSwap.scala

Attributes

Source
HxSwap.scala

Attributes

Source
HxSwap.scala

Implicits

Implicits

implicit val toHtmxValue: ToHtmxValue[HxSwap]

Attributes

Source
HxSwap.scala