5,641
edits
No edit summary Tag: Metadata slot edit |
No edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
== Data Annotator== | |||
{| class="layout-table layout-table-fixed" | |||
| Input <code>jsonschema</code> | |||
<div id="test-input-element" style="height:500px"><div> | |||
| Json-Editor | |||
<div class="JsonEditor" style="font-size:medium;height:500px" data-config='{ | |||
"schema": { | |||
"type": "object", | |||
"title": "My Form", | |||
"title*": {"de": "Mein Formular"} , | |||
"properties": { | |||
"color": { | |||
"type": "string", | |||
"format": "color" | |||
}, | |||
"number": { | |||
"type": "number", | |||
"description": "not a string!" | |||
} | |||
} | |||
}, "data": { | |||
"color": "#ff0000", | |||
"number": "one" | |||
}, | |||
"mode":"default", | |||
"submit_enabled": false, | |||
"schema_editor": {"container_id":"test-input-element"}, | |||
"data_editor": {"container_id":"test-output-element", "download": true}, | |||
"JSONEditorConfig": { | |||
"disable_properties": false, | |||
"show_opt_in": false, | |||
"display_required_only": false, | |||
"disable_array_reorder": true, | |||
"disable_array_delete_all_rows": true, | |||
"disable_array_delete_last_row": true | |||
} | |||
}'></div> | |||
| Output <code>jsondata</code> | |||
<div id="test-output-element" style="height:500px"><div> | |||
|} |