FeatureForm

fun FeatureForm(featureForm: FeatureForm, modifier: Modifier = Modifier, validationErrorVisibility: ValidationErrorVisibility = ValidationErrorVisibility.Automatic, colorScheme: FeatureFormColorScheme = FeatureFormDefaults.colorScheme(), typography: FeatureFormTypography = FeatureFormDefaults.typography())

A composable Form toolkit component that enables users to edit field values of features in a layer using forms that have been configured externally. Forms may be configured in the Web Map Viewer or Fields Maps Designer).

The colors and typography for the Form can use customized using FeatureFormColorScheme and FeatureFormTypography. This customization is built on top of MaterialTheme. If a custom color is specified in both the color scheme and the typography, the color from the color scheme will take precedence and will be merged with the text style, if one is provided.

Note : Even though the FeatureForm class is not stable, there exists an internal mechanism to enable smart recompositions.

Since

200.4.0

Parameters

featureForm

The FeatureForm configuration.

modifier

The Modifier to be applied to layout corresponding to the content of this FeatureForm.

validationErrorVisibility

The ValidationErrorVisibility that determines the behavior of when the validation errors are visible. Default is ValidationErrorVisibility.Automatic which indicates errors are only visible once the respective field gains focus.

colorScheme

The FeatureFormColorScheme to use for the FeatureForm.

typography

The FeatureFormTypography to use for the FeatureForm.