rememberDocumentEditor
Remember a DocumentEditor for a given Document across recompositions. Uses Compose remember with inputs to recreate the editor when they change.
Parameters
Backing document for the editor.
Unified configuration (mode, events, display, pages, functions, ...).
If true, validate the document schema on construction.
Identity generator used for new items/rows.
Error handler for evaluation/validation failures.
Remember a DocumentEditor for a JSON string input across recompositions.
Parameters
String-encoded JSON for the document.
Unified configuration (mode, events, display, pages, functions, ...).
If true, validate the document schema on construction.
Identity generator used for new items/rows.
Error handler for evaluation/validation failures.
Remember a DocumentEditor for raw JSON bytes across recompositions.
Streams the document straight from the bytes (via editorOf) without decoding them to an intermediate String, so opening a large document avoids holding a full extra copy in memory. Prefer this when the JSON comes from a file / network / bundled resource.
Parameters
UTF-8 encoded JSON for the document.
Unified configuration (mode, events, display, pages, functions, ...).
If true, validate the document schema on construction.
Identity generator used for new items/rows.
Error handler for evaluation/validation failures.
Deprecated
Use rememberDocumentEditor(document, config) instead.
Replace with
rememberDocumentEditor(document, FormConfig.Default, validateSchema, identity, onError)Deprecated
Use rememberDocumentEditor(json, config) instead.
Replace with
rememberDocumentEditor(json, FormConfig.Default, validateSchema, identity, onError)Deprecated
Use rememberDocumentEditor(bytes, config) instead.
Replace with
rememberDocumentEditor(bytes, FormConfig.Default, validateSchema, identity, onError)