LocalDateField

open class LocalDateField(tag: String? = null, val placeholder: StrRes? = null, val formatter: (LocalDate) -> String = ::defaultLocalDateFormatter, val showPicker: () -> Unit? = null, val iosPickerMode: IosDatePickerMode = IosDatePickerMode.Compact) : Field<LocalDate>

Calendar date shared by renderers. The value has no time zone; renderers convert platform dates to calendar components without shifting the day. showPicker and iosPickerMode configure how the active renderer presents its picker.

Constructors

Link copied to clipboard
constructor(tag: String? = null, placeholder: StrRes? = null, formatter: (LocalDate) -> String = ::defaultLocalDateFormatter, showPicker: () -> Unit? = null, iosPickerMode: IosDatePickerMode = IosDatePickerMode.Compact)

Properties

Link copied to clipboard
Link copied to clipboard
val errors: ImmutableList<ValidationError>
Link copied to clipboard
val errorsState: State<ImmutableList<ValidationError>>
Link copied to clipboard
var form: Form?
Link copied to clipboard
val formatter: (LocalDate) -> String
Link copied to clipboard
Link copied to clipboard

return true if the element has errors, not warnings

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

return true if the element has errors, not warnings

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val key: String

Element key

Link copied to clipboard
Link copied to clipboard
var onValueChange: (LocalDate?) -> Unit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val placeholder: StrRes?
Link copied to clipboard
Link copied to clipboard
val showPicker: () -> Unit?
Link copied to clipboard
open val submittedValue: Any?

Value contributed by this field to Form.allValues.

Link copied to clipboard
val tag: String?
Link copied to clipboard
Link copied to clipboard
var value: LocalDate?
Link copied to clipboard
val valueState: State<LocalDate?>

Functions

Link copied to clipboard
fun addRule(rule: ValidationRule.Field<LocalDate>)
Link copied to clipboard
fun LocalDateField.applyPickedDate(date: LocalDate)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun evaluateEnabled()
Link copied to clipboard
open override fun evaluateVisibility()
Link copied to clipboard
open override fun onParentValidationChanged(errors: List<ValidationError>)
Link copied to clipboard
open override fun onValueChanged()
Link copied to clipboard
fun remove(reload: Boolean = false)
Link copied to clipboard
fun removeRule(rule: ValidationRule.Field<LocalDate>)
Link copied to clipboard
open override fun setBaseValue(value: Any?)

Called by the form on Form.setValues.

Link copied to clipboard
Link copied to clipboard
open override fun validate(triggerSource: ValidationTriggerSource, includeHidden: Boolean): ImmutableList<ValidationError>