DataInit

zio.http.datastar.DataInit
final class DataInit(val modifier: Maybe[InitModifier])

Builder for the data-init Datastar attribute.

Modifiers such as delay and viewTransition are encoded into the final attribute name and normalized so repeated modifiers collapse to the last effective value. Use := to assign the Datastar expression that should run during initialization.

Attributes

Source
DataInit.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 data-init builder.

Assigns the Datastar expression rendered for this data-init builder.

Attributes

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

Attributes

Source
DataInit.scala

Attributes

Source
DataInit.scala