SubmissionControl
class SubmissionControl<T>(val policy: SubmissionPolicy, val rule: FormRule<T>, val submit: () -> Unit, val initialValue: T, val getValue: () -> T, val hasError: () -> Boolean, val getFieldKeys: () -> FormFieldNames, val isSubmitting: () -> Boolean, val isSubmitted: () -> Boolean, val getSubmitCount: () -> Int)
Represents a submission control in a form.
Parameters
T
The type of the form value.
Properties
Link copied to clipboard
The function to get the keys of the form fields.
Link copied to clipboard
The function to get the number of times submission process was called.
Link copied to clipboard
The initial value of the form.
Link copied to clipboard
The function to determine if the form has been submitted.
Link copied to clipboard
The function to determine if the form is currently submitting.
Link copied to clipboard
The policy of the submission.