Package-level declarations
Types
Link copied to clipboard
interface JsonFormState
An object representing a form described by the standard Jsonforms.io.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun JsonForm(schema: Schema, uiSchema: UiSchema, modifier: Modifier = Modifier, state: JsonFormState = rememberJsonFormState(initialValues = mutableMapOf()), layoutContent: @Composable RendererLayoutScope.(@Composable (UiSchema) -> Unit) -> Unit, stringContent: @Composable RendererStringScope.(id: String) -> Unit, numberContent: @Composable RendererNumberScope.(id: String) -> Unit, booleanContent: @Composable RendererBooleanScope.(id: String) -> Unit)
Display a form described in a Schema and UiSchema. If you want to interact with the form, you can declare your own state before the declaration of this component and pass it as parameter. You'll be able to interact with fields of the form. If you want to override a specific field of your form, you can add a custom render in the sniper parameter.
Link copied to clipboard
fun rememberJsonFormState(initialValues: MutableMap<String, Any?>, vararg keys: String): JsonFormState
Create a JsonFormState that is remembered across compositions. Changes to the provided initial values will not result in the state being recreated or changed in any way if it has already been created.