rememberDocumentEditor

fun rememberDocumentEditor(document: Document, validateSchema: Boolean = true, identity: IdentityGenerator = IdentityGenerator.default, layout: LayoutConfig = LayoutConfig.convenientMobile(), functions: ResolutionResourceBuilder.() -> Unit? = null, onError: ErrorHandler = NoOpErrorHandler, onChange: DocumentEditor.(ChangeEvent) -> Unit? = null): DocumentEditor

Remember a DocumentEditor for a given Document across recompositions. Uses Compose remember with inputs to recreate the editor when they change.

Parameters

document

Backing document for the editor.

validateSchema

If true, validate the document schema on construction.

identity

Identity generator used for new items/rows.

layout

Layout configuration affecting pages and visibility.

functions

Optional Wisdom functions available to formulas.

onError

Error handler for evaluation/validation failures.

onChange

Optional callback invoked for each editor change.


fun rememberDocumentEditor(json: String, validateSchema: Boolean = true, identity: IdentityGenerator = IdentityGenerator.default, layout: LayoutConfig = LayoutConfig.convenientMobile(), functions: ResolutionResourceBuilder.() -> Unit? = null, onError: ErrorHandler = NoOpErrorHandler, onChange: DocumentEditor.(ChangeEvent) -> Unit? = null): DocumentEditor

Remember a DocumentEditor for a JSON string input across recompositions. Parses the JSON and delegates to editorOf with the given parameters.

Parameters

json

String-encoded JSON for the document.

validateSchema

If true, validate the document schema on construction.

identity

Identity generator used for new items/rows.

layout

Layout configuration affecting pages and visibility.

functions

Optional Wisdom functions available to formulas.

onError

Error handler for evaluation/validation failures.

onChange

Optional callback invoked for each editor change.