Input fields you can use. Instead of creating different components for each field type, I have created one single FormField component and you manage how it is painted by using the dataType and stereotype fields.

  • Fluent
  • Declarative

     FormField.builder()
              .id("name")
              .label("Name")
              .dataType(FieldDataType.date)
              .build()

TBD.

Available properties

This is the list of available properties for an input field:

PropertyDescriptionNotes
idid for this component
cssClasseslist of css classescontent of the css attribute
styleinline style attributescontent of the style attribute
labellabel for this fieldcontent of the style attribute
dataTypeone of integer, string, decimal, date, time, dateTime, bool, reference, array, file
stereotypeone of regular, radio, checkbox, textarea, toggle, combobox, select, email, password, richText, listBox
requiredtrue/false
autofocustrue/false
descriptionhelp text
optionslist of valid options
initialValuethe initial value for this field. Will use the container component state if not provided
validationslist of validations for this field