-
public final class FormField
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final FormFieldTypetypeprivate final Stringlabelprivate final Stringplaceholderprivate final Booleanrequiredprivate final FormFieldValidationvalidationprivate final ImmutableList<FormFieldOption>optionsprivate final FormFieldConfigconfigprivate final Map<String, Object>config_rawprivate final FormFieldDependencydepends_onprivate final FormFieldStylestyle
-
Constructor Summary
Constructors Constructor Description FormField(String id, FormFieldType type, String label, String placeholder, Boolean required, FormFieldValidation validation, ImmutableList<FormFieldOption> options, FormFieldConfig config, Map<String, Object> config_raw, FormFieldDependency depends_on, FormFieldStyle style)
-
Method Summary
Modifier and Type Method Description final StringgetId()final FormFieldTypegetType()final StringgetLabel()final StringgetPlaceholder()final BooleangetRequired()final FormFieldValidationgetValidation()final ImmutableList<FormFieldOption>getOptions()final FormFieldConfiggetConfig()final Map<String, Object>getConfig_raw()#596 — the SAME configobject, kept raw.final FormFieldDependencygetDepends_on()final FormFieldStylegetStyle()-
-
Constructor Detail
-
FormField
FormField(String id, FormFieldType type, String label, String placeholder, Boolean required, FormFieldValidation validation, ImmutableList<FormFieldOption> options, FormFieldConfig config, Map<String, Object> config_raw, FormFieldDependency depends_on, FormFieldStyle style)
-
-
Method Detail
-
getType
final FormFieldType getType()
-
getPlaceholder
final String getPlaceholder()
-
getRequired
final Boolean getRequired()
-
getValidation
final FormFieldValidation getValidation()
-
getOptions
final ImmutableList<FormFieldOption> getOptions()
-
getConfig
final FormFieldConfig getConfig()
-
getConfig_raw
final Map<String, Object> getConfig_raw()
#596 — the SAME
configobject, kept raw.FormFieldConfigis a typed class, so every key it does not declare is dropped at parse. The console's Select field offers six display styles and roughly twenty option-styling keys; none are declared there, sodisplay_style: "image_tiles"never survived parsing and the field always fell through to an ExposedDropdownMenu.Keeping the raw map lets a form Select render through the same engine the
input_selectCONTENT block uses, rather than growing a second implementation of six layouts. iOS parity:FormField.config_raw.
-
getDepends_on
final FormFieldDependency getDepends_on()
-
getStyle
final FormFieldStyle getStyle()
-
-
-
-