org.http4k.datastar.SettleDuration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4k-web-datastar Show documentation
Show all versions of http4k-web-datastar Show documentation
http4k Datastar support utilities
package org.http4k.datastar
import dev.forkhandles.values.DurationValue
import dev.forkhandles.values.DurationValueFactory
import java.time.Duration
/**
* Settles the element after 1000ms, useful for transitions
*/
class SettleDuration private constructor(value: Duration) : DurationValue(value) {
companion object : DurationValueFactory({ SettleDuration(it) }) {
val DEFAULT = SettleDuration.of(Duration.ofMillis(300))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy