Create a new editron instance, which will be used to create ui-forms for specific
data-points via editron.createEditor(pointer, dom);
editron proxy instance
set to true,
internal helper. Set to true
, if editron has been destroyed
active state of editor
list of editor-widgets to generate form for this instance
final options used by this editron instance
list of active plugins for this instance
list instantiated services
current state of errors, ui and data
value of format
validator function receiving (core, schema, value, pointer). Return undefined
for a valid value and an object {type: "error", message: "err-msg", data: { pointer }}
as error. May
als return a promise
Request to insert a child item (within the data) at the given pointer. If multiple options are present, a dialogue is opened to let the user select the appropriate type of child (oneof).
to array on which to insert the child
index within array, where the child should be inserted (does not replace). Default: 0
JSON-Schema datatype to register attribute, e.g. "string" or "object"
custom keyword
validator function receiving (core, schema, value, pointer). Return undefined
for a valid value and an object {type: "error", message: "err-msg", data: { pointer }}
as error. May
als return a promise
data pointer to editor in current state
parent element of create editor. Will be appended automatically
created editor-instance or undefined;
Helper to create dom elements via mithril syntax
a css selector describing the desired element
a map of dom attribute:value of the element (reminder className = class)
the resulting dom-element (not attached)
Destroy the editor, its widgets and services
Call this method, to destroy your editors, deregistering its instance on editron
editor instance to remove
data at the given location
returns the editors active state
proxy instance
Add additional editors to available editors for json-schema rendering. Note, that order is important. First editor to register, will be selected first. Registered editors will be added to start of list.
one or many editors to add to start of editor-list
reset undo history
enable or disable the editor input-interaction
if false, deactivates editor
Set the application data
json data matching registered json-schema
Change the new schema for the current data
a valid json-schema
start validation of current data
Generated using TypeDoc
Main component to build editors. Each editor should receive the editron, which carries all required services for editor initialization
Usage
Instantiate the editron
or, using all parameters
and start rendering editors
to fetch the generated data use