Interface FormFieldScope

  • All Implemented Interfaces:

    
    public interface FormFieldScope<V extends Object>
    
                        

    A scope interface for FormField objects

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit setField(V input, Boolean validate) A setter function for field valueYou're encouraged to set the field value only using this function
      abstract State<V> getState() Observable State instance of field value
      abstract State<FieldResult> getResultState() Observable State instance of FieldResultYou can use this for validation results
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • setField

         abstract Unit setField(V input, Boolean validate)

        A setter function for field value

        You're encouraged to set the field value only using this function

        Parameters:
        input - input value
      • getResultState

        @Composable() abstract State<FieldResult> getResultState()

        Observable State instance of FieldResult

        You can use this for validation results