StateEvent

sealed class StateEvent<T> : FormManagerEvent<T> (source)

Event emitted by the form manager signaling a change in the form's state.

Inheritors

Types

Link copied to clipboard
data class DirtyChange<T>(val status: Boolean, val path: AbsolutePath, val schema: Schema<T>) : StateEvent<T>

Event emitted when the dirty status of a value has changed.

Link copied to clipboard
data class DisplayChange<T>(val status: DisplayStatus, val path: AbsolutePath, val schema: Schema<T>) : StateEvent<T>

Event emitted when the display status of a value has changed.

Link copied to clipboard
data class TouchedChange<T>(val status: Boolean, val path: AbsolutePath, val schema: Schema<T>) : StateEvent<T>

Event emitted when the touched status of a value has changed.

Link copied to clipboard
data class ValidationChange<T>(val status: ValidationStatus, val issues: List<ValidationIssue>, val path: AbsolutePath, val schema: Schema<T>) : StateEvent<T>

Event emitted when the validation status of a value has changed.

Properties

Link copied to clipboard
open override val path: AbsolutePath

Path associated with the event.

Link copied to clipboard
open override val schema: Schema<T>

Schema of the value associated with the event.