FormConfig

data class FormConfig(val mode: Mode = Mode.fill, val license: String? = null, val events: FormEvents = FormEvents(), val display: DisplayConfig = DisplayConfig(), val pages: PageConfig = PageConfig(), val functions: ResolutionResourceBuilder.() -> Unit? = null, val validateSchema: Boolean = true)

Single configuration object for a document's editor and its rendering.

Grouped so consumers can build, store, and swap whole presets instead of passing long parameter lists. Lives in the editor module (not compose) so the joyfill.editors.document.DocumentEditor can expose it via editor.config.

Constructors

Link copied to clipboard
constructor(mode: Mode = Mode.fill, license: String? = null, events: FormEvents = FormEvents(), display: DisplayConfig = DisplayConfig(), pages: PageConfig = PageConfig(), functions: ResolutionResourceBuilder.() -> Unit? = null, validateSchema: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

What renders and how.

Link copied to clipboard

Field/page event handlers.

Link copied to clipboard

Optional Wisdom functions available to formulas during evaluation.

Link copied to clipboard
val license: String? = null

License string enabling licensed features. Verified in the compose layer; defaults to null here so the editor module stays free of the JWT/Secrets machinery.

Link copied to clipboard
val mode: Mode

Rendering mode (fill vs readonly) controlling interactivity.

Link copied to clipboard

Page-navigation capabilities.

Link copied to clipboard

When true, validates the document schema on editor construction.